#41851 [Bgs]: Error with chinese characters
| From: | hsiehstanley83 at hotmail dot com | Date: | Fri, 29 Jun 2007 12:14:26 +0000 |
| Subject: | #41851 [Bgs]: Error with chinese characters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114455@lists.php.net to get a copy of this message | ||
ID: 41851
User updated by: hsiehstanley83 at hotmail dot com
Reported By: hsiehstanley83 at hotmail dot com
Status: Bogus
Bug Type: Gettext related
Operating System: Windows XP
PHP Version: 5.2.3
New Comment:
no difference.
Previous Comments:
------------------------------------------------------------------------
[2007-06-29 12:13:03] derick@php.net
Use UTF-8 as your file encoding.
------------------------------------------------------------------------
[2007-06-29 12:07:52] hsiehstanley83 at hotmail dot com
So, how can I fix this?
------------------------------------------------------------------------
[2007-06-29 12:03:33] tony2001@php.net
PHP6 will have decent Unicode support, you have to wait until it's
available.
------------------------------------------------------------------------
[2007-06-29 08:48:58] hsiehstanley83 at hotmail dot com
Description:
------------
when a chinese charactor "÷" is the last letter of a word that equals
to a varibale. An error occurred.
Reproduce code:
---------------
<?php
$test="oü¬÷";
echo $test;
?>
Expected result:
----------------
oü¬÷
Actual result:
--------------
Parse error: syntax error, unexpected $end in
C:\Inetpub\wwwroot\test.php on line 4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41851&edit=1