#37724 [NEW]: mb_detect_encoding returns wrong result when text contains a trailing accent
| From: | oylbqelmhfbxzg at mailinator dot com | Date: | Wed, 07 Jun 2006 08:54:27 +0000 |
| Subject: | #37724 [NEW]: mb_detect_encoding returns wrong result when text contains a trailing accent | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-98127@lists.php.net to get a copy of this message | ||
From: oylbqelmhfbxzg at mailinator dot com
Operating system: Linux
PHP version: 4.4.2
PHP Bug Type: mbstring related
Bug description: mb_detect_encoding returns wrong result when text contains a trailing accent
Description:
------------
Since bug 36994 was closed..
Both
$string = "testö"
in a utf-8 text file, and
$string = "testö"
in an iso-8859-1 file (converted using iconv) return "UTF-8" with
mb_detect_encoding, even when strict is on.
--
Edit bug report at http://bugs.php.net/?id=37724&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37724&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37724&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37724&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37724&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37724&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37724&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37724&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37724&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37724&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37724&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37724&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37724&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37724&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37724&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37724&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37724&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37724&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37724&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37724&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37724&r=mysqlcfg