Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP-DEV] php bugs (Chinese word display problem)-help

0 views
Skip to first unread message

sam...@3give.com

unread,
Nov 26, 2002, 12:51:35 AM11/26/02
to
Hi, everyone:
I am a Chinese, I am a programmer.
I encounter a problem about php.
Attachment is 1.php,
when i open this file (this file is saved at linux server, apache and
php 4.2.3 are installed on this server) in Internet Explorer, error
displays:

Parse error: parse error, expecting `','' or `';'' in
/usr/3give/test/1.php on line 5


(If your computer is windows 2000, and Simplify Chinese and Traditional
chinese language are installed) you will read the Chinese word.

I found that if the hex code for Chinese word ends with '5C', then the
error will exist.
Anymore, if I input a Chinese word which hex code ends with '5C' in the
database field, then the display result will add a suffix '\', for example,
if i input "中運", it will display "中運\" at the browser (Internet
explorer).
I don't know why this problem exist, can you solve this problem for us?

Contact me by: sam...@3give.com; (86)755-27232311->samuel

Best regards
Thanks.
Samuel

--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Moriyoshi Koizumi

unread,
Nov 26, 2002, 11:21:53 AM11/26/02
to
Hi, Samuel

As far as I know, CP936 characters which is commonly used in MS products
are basically not allowed to use in PHP scripts. You have to use UTF-8
encoding in such case.

Anyway, this is wrong list for this kind of question, so better ask this
at php-g...@lists.php.net.

Regards,
Moriyoshi


<sam...@3give.com> wrote:

> Hi, everyone:
> I am a Chinese, I am a programmer.
> I encounter a problem about php.
> Attachment is 1.php,
> when i open this file (this file is saved at linux server, apache and
> php 4.2.3 are installed on this server) in Internet Explorer, error
> displays:
>
> Parse error: parse error, expecting `','' or `';'' in
> /usr/3give/test/1.php on line 5
>
>
> (If your computer is windows 2000, and Simplify Chinese and Traditional
> chinese language are installed) you will read the Chinese word.
>
> I found that if the hex code for Chinese word ends with '5C', then the
> error will exist.
> Anymore, if I input a Chinese word which hex code ends with '5C' in the
> database field, then the display result will add a suffix '\', for example,

> if i input "浳 ", it will display "浳 \" at the browser (Internet

0 new messages