#41851 [Bgs]: Error with chinese characters

From: Date: Fri, 29 Jun 2007 12:13:03 +0000
Subject: #41851 [Bgs]: Error with chinese characters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114452@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#114452) next »