Embeded in phpBB
webmastair
Joined: 2005-06-09
Posts: 25 |
Posted: Tue, 2007-02-06 17:21 |
Hi, I use the G2 embeded in the last version of phpBB forums. Everyting seems to worked fine but when I goes in G2 by the forums, the characters looked like "Album : Galeries photos priv饳" (and characters of the forums too)... and when I goes directly in G2 without the phpBB intergration interface, everything was ok (forums & G2). I have done a modify in the files "g2helper.inc" ! I changed this functions : function _utf8Translate($value) { return (defined('UTF8_TRANSLATE')) ? utf8_encode($value) : $value; } function utf8Untranslate($value) { return (defined('UTF8_TRANSLATE')) ? utf8_decode($value) : $value; ... like this : function _utf8Translate($value) { return (defined('UTF8_TRANSLATE')) ? $value : $value; } function utf8Untranslate($value) { return (defined('UTF8_TRANSLATE')) ? $value : $value; ... so that it has no effect on the "html" translate ! With this change, it's now the characters of the forums (Derni貥 visite le Aujourd'hui, ࠱0:08) that are bad when we are looking from into the photo's albums (everything is back ok when we are out of the albums). Is there anybody who's know what to do ? ---------------------------------- ---------------------------------- |
|
Posts: 25
I changed back this code in his usual state and disable the "UTF-8 Translation" in the ACP.
Everything is back ok except when i go directly into G2 to manage albums and users... there is now the same problem «Album: Election Comit頦quot;Cumulus Hoppers"» (My gallery DB is "utf8_unicode_ci").
Did somedbody have an idea to help me ?
WebmastAir (from CompAir)