I dun understand what you mean by line feeds.

When the file is in Unicode format, the web displays the Chinese characters
and when I view source, I can see all the PHP code. If quiz.php is treated
like a PHP file, then the PHP parser would not have allowed the PHP code to
show in source.

If quiz.php is treated like a txt file, the PHP code should show on screen.
Same goes if quiz.php is treated like HTML file (I suppose).

So.. what could be wrong? And how to fix it? Please help urgent... thanks in
advance! =`(

When file is in ANSI format, everything is fine except that the chinese
doesn’t show... bad.

-----Original Message-----
From: Sophie Mattoug [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 03, 2003 10:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] wrapping PHP around Chinese characters

Would it be possible you have a problem with line-feeds while uploading 
from win ti linux ?

-- 
Cordialement,
---------------------------
Sophie Mattoug
Développement web dynamique
[EMAIL PROTECTED]
---------------------------

See Kok Boon wrote:

>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.
>
> 
>
>
>  
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to