![]() |
|
html_meta_tags v1.4.1 does not truncate UTF-8 string well - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: html_meta_tags v1.4.1 does not truncate UTF-8 string well (/thread-8863.html) |
html_meta_tags v1.4.1 does not truncate UTF-8 string well - hkdigit - 2011-07-21 One of Chinese language photo gallery using UTF-8 as encoding. When I check the following image page by W3C validator http://www.hkgimages.com/pic/people/theresa-fu-wing/hkgimages-20110705-131104.jpg.htm It return following error: Sorry, I am unable to validate this document because on line 21 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication. The error was: utf8 "\xE6" does not map to Unicode http://img828.imageshack.us/img828/3200/descriptiont.jpg It check line 21, which is meta description line and find the system seems does not truncate the last chinese character well. Question : Does the plugin support UTF-8? which use PHP Multi-byte function, such as mb_strimwidth? html_meta_tags v1.4.1 does not truncate UTF-8 string well - acrylian - 2011-07-21 No, it uses currently the plain substr() function. It should actually use our own truncate function that probable is utf8 save. Please open a ticket as I have no time for this right now. |