#23470 [Opn->Ver]: Character Encodings

From: Date: Sat, 03 May 2003 21:40:10 +0000
Subject: #23470 [Opn->Ver]: Character Encodings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39000@lists.php.net to get a copy of this message
ID: 23470 Updated by: nicos@php.net Reported By: luca at accomazzi dot net -Status: Open +Status: Verified Bug Type: mbstring related Operating System: Darwin (Mac OS X) PHP Version: 4.3.1 New Comment: It looks there but its behind an ifdef: #if defined(HAVE_MBSTR_RU) static const char *mbfl_encoding_cp1251_aliases[] = {"CP1251", "CP-1251", "WINDOWS-1251", NULL}; static const mbfl_encoding mbfl_encoding_cp1251 = { mbfl_no_encoding_cp1251, "Windows-1251", "Windows-1251", (const char *(*)[])&mbfl_encoding_cp1251_aliases, NULL, MBFL_ENCTYPE_SBCS }; is Windows-1251 really supposed to be in this HAVE_MBSTR_RU? Previous Comments: ------------------------------------------------------------------------ [2003-05-03 15:27:38] luca at accomazzi dot net Regarding page: http://www.php.net/manual/en/ref.mbstring.php Inside paragraph: Supported Character Encodings It says: >As of PHP 4.3.0, the following character encoding support will be added experimentaly [...] >Windows-1251 (CP1251) [...] Incidentally, note that "experimentally" is misspelled with a single L. I'm working with 4.3 and the above text seems incorrect. If I try: mb_convert_encoding("whatever", "Windows-1251", "UTF-8"); Or even: mb_convert_encoding("whatever", "CP1251", "UTF-8"); I get: Warning: mb_convert_encoding() [function.mb-convert-encoding]: Unknown encoding "Windows-1251" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23470&edit=1

« previous php.bugs (#39000) next »