PDA

View Full Version : Special characters problem in templates


vmady
05-13-2008, 09:15 AM
Hi,

character problem in templates is worse than ever since the latest release... It makes this great functionality completly useless for language with special characters :-(

If you don't plan to fix this issue quickly, could you tell me in which PHP file(s) this issue is managed for me to try to find a way to fix the problem ?

Regards,

Vincent

vmady
05-14-2008, 03:13 PM
After a chat with Hildy, I've found a little workaround that seems to work with most of the ISO characters :

In classes.php (cerb4/plugins/cerberusweb.core/), I've added on line 7833 the following piece of code :

$title = mb_convert_encoding($title, "ISO-8859-1", mb_detect_encoding($string, "UTF-8, ISO-8859-1, ISO-8859-15", true));
$content = mb_convert_encoding($content, "ISO-8859-1", mb_detect_encoding($string, "UTF-8, ISO-8859-1, ISO-8859-15", true));

Let's be carefull anyway : the data stored in the database is converted to ISO (and not UTF8) and that may cause problems and incompatibilities with the next releases and the official workaround on this issue ...