|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-05-03 15:27 UTC] 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" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 17:00:01 2025 UTC |
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?