|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41851 Error with chinese characters
Submitted: 2007-06-29 08:48 UTC Modified: 2007-06-29 12:14 UTC
From: hsiehstanley83 at hotmail dot com Assigned:
Status: Not a bug Package: Gettext related
PHP Version: 5.2.3 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
8 + 23 = ?
Subscribe to this entry?

 [2007-06-29 08:48 UTC] hsiehstanley83 at hotmail dot com
when a chinese charactor "??" is the last letter of a word that equals to a varibale. An error occurred.

Reproduce code:
echo $test;

Expected result:

Actual result:
Parse error: syntax error, unexpected $end in C:\Inetpub\wwwroot\test.php on line 4


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-29 12:03 UTC]
PHP6 will have decent Unicode support, you have to wait until it's available.
 [2007-06-29 12:07 UTC] hsiehstanley83 at hotmail dot com
So, how can I fix this?
 [2007-06-29 12:13 UTC]
Use UTF-8 as your file encoding.
 [2007-06-29 12:14 UTC] hsiehstanley83 at hotmail dot com
no difference.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 27 23:03:33 2022 UTC