Bluehost.com Web Hosting $6.95

wrapping PHP around chinese characters

This is a discussion on wrapping PHP around chinese characters within the PHP General forums, part of the PHP Programming Forums category; Hellox experts.. I am making a quiz for a Chinese website. the PHP I going to use is to be ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-03-2003
See Kok Boon
 
Posts: n/a
Default wrapping PHP around chinese characters

Hellox experts..



I am making a quiz for a Chinese website. the PHP I going to use is to be
wrapped together with the chinese character outputs all in a single file.
For an example...



In "quiz.php"



If(YOUR_ANSWER_IS_CORRECT)

{

print "in chinese: you scored full marks" //output

}

else

{

print "in chinese: please try again" //ouput

}



the outputs are Chinese characters.





The problem I have now is that either I can't output Chinese, or the code
doesn't work.



- I am developing this quiz on windows XP then uploading to Linux server.

- The "code editor" I use dun support any other formats than ANSI.

- MS WORD generates whole lot of rubbish for html documents and dun handle
PHPs

- Dreamweaver doesn't give me a clue on how to do it...

- so far notepad is the best. I can save the file as .php .html or .txt in
ANSI or UNICODE formats.



In notepad, I can input Chinese characters together with the PHP code
wrapped around. If I save in ANSI, the result online is that the code works,
but the output doesn't. if I save in Unicode, which notepad advices me to,
then the code cannot work and all the output regardless of the IF branches,
are output-ted. What else can I do?



The strange thing is that when in Unicode format, the PHP code doesn't show,
only the outputs are displayed.






Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:49 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0