#20721 [NEW]: mb_split not splitting ...
| From: | jc at mega-bucks dot co dot jp | Date: | Fri, 29 Nov 2002 12:20:17 +0000 |
| Subject: | #20721 [NEW]: mb_split not splitting ... | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-26166@lists.php.net to get a copy of this message | ||
From: jc@mega-bucks.co.jp
Operating system: Red Hat Linux 7.2
PHP version: 4.2.2
PHP Bug Type: mbstring related
Bug description: mb_split not splitting ...
The following code using mb_split() is not working as expected:
$EMAIL = $_POST["email"];
echo "ecoding was ".mb_detect_encoding($EMAIL)."<BR>";
list($a, $b) = mb_split("@", $EMAIL);
echo "a is $a <BR>";
echo "b is $b <BR>";
OUTPUT:
£ê£ã¡÷Test.Com
ecoding was EUC-JP
Notice: Undefined offset: 1 in update_email_pw.php on line 38
a is £ê£ã¡÷Test.Com
b is
My internal encodingis set to EUC_JP so I would think that even though I
used the ASCII "@" it should work for splitting.
Jc
--
Edit bug report at http://bugs.php.net/?id=20721&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20721&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20721&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20721&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20721&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20721&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20721&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20721&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20721&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20721&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20721&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20721&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20721&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20721&r=isapi