From: tom at nooper dot com
Operating system: Redhat 8
PHP version: 4.3.4
PHP Bug Type: mbstring related
Bug description: unable to detect character encoding

Description:
------------
I get the following error generated:
mb_convert_encoding(): Unable to detect character encoding

Up to 4.3.3 this works no problem. I compiled php with same options
including the --enable-mbstring=all. If I look at phpinfo() output it
seems that all the languages are missing no matter if I compile with
--enable-mbstring=ja or other.

I noticed another bug which was closed that fixed a bug in the reporting
of phpinfo() for mbstring where it was suggested that all languages were
included now from 4.3.4 independant of compile options.

The code snippet that was used to generate the error above is simply:

echo mb_convert_encoding($jText, 'SJIS','AUTO');

where $jText is some "EUC-JP" text.

I tried the latest php snapshot from cvs also and it also doesn't work. If
you need a short example program to reproduce this problem, I can look
into it from Monday/Tuesday.


--
Edit bug report at [url]http://bugs.php.net/?id=26184&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26184&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26184&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26184&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26184&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26184&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26184&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26184&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26184&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26184&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26184&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26184&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26184&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26184&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26184&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26184&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26184&r=float[/url]