[Tickets #2099] NEW: Cyrillic with mbstring enabled

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Jun 8 01:42:09 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2099
-----------------------------------------------------------------------
 Ticket             | 2099
 Created By         | petr999 at mail.ru
 Summary            | Cyrillic with mbstring enabled
 Queue              | IMP
 Version            | 4.0.3
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


petr999 at mail.ru (2005-06-08 01:42) wrote:

As far as I see the correct HTTP encoding for Russian should be
windows-1251, and gettext function _() suppiles the windows-1251.
But, with mbstring (and probably iconv, too) PHP extension enabled, the
Horde turns HTTP encoding to UTF-8 (if the browser supplies header it is
able on UTF-8 which is true for every non-ancient one).
So, the user see the windows-1251 characters tre3ated as UTF-8 in a browser.
Since I do not need the multibyte encodings, my workaround for this is:
===
            if ($browser->hasFeature('utf') &&
                (Util::extensionExists('iconv') # ||
       #          Util::extensionExists('mbstring')
        )) {   
                $charset = 'UTF-8';
            }
===
in NLS.php. But I suspect it is not a real solution...




More information about the bugs mailing list