RE: [PHP] wrapping PHP around Chinese characters

2003-12-03 Thread See Kok Boon
Thanks jason. Problems solved. Thanks. =)

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 04, 2003 12:19 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] wrapping PHP around Chinese characters

On Thursday 04 December 2003 00:09, See Kok Boon wrote:
> I dun understand what you mean by line feeds.

That should not have anything to do with your problem.

[snip]

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

Have you specified the correct encoding? -- either by using the HTTP header 
"Content-Type: text/html; charset=BIG5" or an equivalent HTML meta-tag.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Appendix:
A portion of a book, for which nobody yet has discovered any use.
*/

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



Re: [PHP] wrapping PHP around Chinese characters

2003-12-03 Thread Jason Wong
On Thursday 04 December 2003 00:09, See Kok Boon wrote:
> I dun understand what you mean by line feeds.

That should not have anything to do with your problem.

[snip]

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

Have you specified the correct encoding? -- either by using the HTTP header 
"Content-Type: text/html; charset=BIG5" or an equivalent HTML meta-tag.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Appendix:
A portion of a book, for which nobody yet has discovered any use.
*/

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



RE: [PHP] wrapping PHP around Chinese characters

2003-12-03 Thread See Kok Boon
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



Re: [PHP] wrapping PHP around Chinese characters

2003-12-03 Thread Sophie Mattoug
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] wrapping PHP around Chinese characters

2003-12-03 Thread See Kok Boon
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] wrapping PHP around chinese characters

2003-12-03 Thread See Kok Boon
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.