View Issue Details

IDProjectCategoryView StatusLast Update
0016800phpList 3 applicationMessage Managementpublic21-06-18 13:05
Reporterdymitar 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.11.10 
Target Versionnext majorFixed in Version 
Summary0016800: Text variant of the message is too narrow
DescriptionThe wordwrap function is not "utf-8" aware and the texts are too narrow.
To fix the problem following function can be used:
http://milianw.de/code-snippets/utf-8-wordwrap

I tested it and it is working, but probably more tests will be needed.
TagsNo tags attached.

Activities

michiel

02-06-13 02:00

manager   ~0052074


Interesting. Can you post some of your test results ? Eg original -> result without this function -> result with the function.

Will be good to add, but probably initially with a DEFINE that is off by default.

dymitar

03-06-13 06:48

reporter  

original.png (25,155 bytes)
original.png (25,155 bytes)

dymitar

03-06-13 06:48

reporter  

standard-wordwrap.png (27,855 bytes)
standard-wordwrap.png (27,855 bytes)

dymitar

03-06-13 06:48

reporter  

new-function.png (32,729 bytes)
new-function.png (32,729 bytes)

dymitar

03-06-13 06:50

reporter   ~0052077

Cannot post the texts, because the SVN is not configured to support utf-8 :-)

But you can see the screenshots:
- original.phg - html mesasage
- standard-wordwrap.png - the text with standard php function
- new-function.png - the text with with the function from the link

michiel

03-06-13 13:23

manager   ~0052078

wow, that's a big difference in width.

Strange that mantis doesn't handle UTF-8 characters ?????? ???