#41851 [Bgs]: Error with chinese characters
ID: 41851
Updated by: derick@php.net
Reported By: hsiehstanley83 at hotmail dot com
Status: Bogus
Bug Type: Gettext related
Operating System: Windows XP
PHP Version: 5.2.3
New Comment:
Use UTF-8 as your file encoding.
Previous Comments:
------------------------------------------------------------------------
[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
Thread (6 messages)