#23470 [Ver->Bgs]: Character Encodings
| From: | derick@php.net | Date: | Sat, 03 May 2003 21:45:19 +0000 |
| Subject: | #23470 [Ver->Bgs]: Character Encodings | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39002@lists.php.net to get a copy of this message | ||
ID: 23470
Updated by: derick@php.net
Reported By: luca at accomazzi dot net
-Status: Verified
+Status: Bogus
Bug Type: mbstring related
Operating System: Darwin (Mac OS X)
PHP Version: 4.3.1
New Comment:
(As moriyoshi explain on phpdoc@:)
Therefore cp1251 encoding isn't available unless you have configured
your
build with --enable-mbstring=all or --enable-mbstring=ru.
not a bug -> bogus
Previous Comments:
------------------------------------------------------------------------
[2003-05-03 16:40:10] nicos@php.net
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?
------------------------------------------------------------------------
[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