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
Description

It seems that some UTF-8 strings are handled incorrectly. See attached screenshot. It has no effect on data integrity but looks ugly.

AttachmentSize
taxonomy-manager-utf-bug.png9.08 KB

#1

mh86 - May 7, 2009 - 14:21

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

mh86 - July 16, 2009 - 14:15
Status:active» fixed

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

System Message - July 30, 2009 - 14:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.