Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#974 closed Bug (fixed)

Swedish characters don't show up properly in UI, graphs

Reported by: matt Owned by:
Priority: major Milestone: Piwik 0.4.4
Component: Core Keywords:
Cc: Sensitive: no

Description

See attached screenshot. it might be an issue with the way translations are html encoded (should we allow html entities, or force to use native UTF-8 for all characters?), or it might be a bug (missing html decoding before output).

Attachments (1)

example.jpg (218.4 KB) - added by matt 5 years ago.
Example of broken ui with swedish language

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by matt (mattab)

Example of broken ui with swedish language

comment:1 Changed 5 years ago by vipsoft (robocoder)

I'd prefer removing html entities from translations.

Adding an html_entity_decode() to Piwik_Translate should fix it but obviously has some runtime cost.

comment:2 Changed 5 years ago by vipsoft (robocoder)

Hmmm... might have to rethink this if using < and >.

comment:3 Changed 5 years ago by matt (mattab)

Maybe the right thing would be to have the graph classes html entity decode the text.

Also, there is an issue with search engine keywords, that maybe shows that there is an issue with encoding these characters.

What was the search engine used that lead to the buggy keyword entry? It is possible to specify a charset for keyword for each search engine, which might help. Read for more info: http://piwik.org/faq/general/#faq_39

comment:4 Changed 5 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

In [1478], fixes #974 Swedish characters don't show up properly in UI, graphs

comment:5 Changed 5 years ago by vipsoft (robocoder)

In [1534], fixes #1013, refs #974 - html_entity_decode() country and continent translations

Note: See TracTickets for help on using tickets.