|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: hsiehstanley83 at hotmail dot com
New email:
PHP Version: OS:


 [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: Fri Jan 28 00:03:34 2022 UTC