Broken UTF-8 support
1fotograf.ru - March 27, 2009 - 21:54
| Project: | Taxonomy Manager |
| Version: | 6.x-1.0-beta2 |
| Component: | User interface |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
It seems that some UTF-8 strings are handled incorrectly. See attached screenshot. It has no effect on data integrity but looks ugly.
| Attachment | Size |
|---|---|
| taxonomy-manager-utf-bug.png | 9.08 KB |

#1
I can see the problems in the attached screenshot, but I can't find any letter to reproduce this problem. Don't know why the string was handled incorrect in your case. The term name is just checked with check_plain. So no ideas here
#2
I finally found a term with this problem, so I was able to fix this issue.
The problem was caused by doing a check_plain, then using substr, which might break UTF-8 strings. replaced this with drupal_substr and doing check_plain at the end.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.