[WSG] Chinese translations and PHP includes

2006-03-20 Thread Adrian O'Hagan
Title: [WSG] Chinese translations and PHP includes Hello list, I am embarking on my first multi-lingual site (English, Simplified Chinese and Traditional Chinese). It is to be a static site (no databases) and I have used PHP to take advantage of the server-side includes. The doctype for my

Re: [WSG] Chinese translations and PHP includes

2006-03-20 Thread Lachlan Hunt
Adrian O'Hagan wrote: I am embarking on my first multi-lingual site (English, Simplified Chinese and Traditional Chinese). It is to be a static site (no databases) and I have used PHP to take advantage of the server-side includes. Although there's nothing wrong with using PHP, you don't need

Re: [WSG] Chinese translations and PHP includes

2006-03-20 Thread Ray Cauchi
Is your include file written in the correct charset? At 10:50 AM 21/03/2006, Adrian O'Hagan wrote: Hello list, I am embarking on my first multi-lingual site (English, Simplified Chinese and Traditional Chinese). It is to be a static site (no databases) and I have used PHP to take

Re: [WSG] Chinese translations and PHP includes

2006-03-20 Thread Adrian O'Hagan
Thanks Lachlan (and Fernguly for the off-list response!), You've given me plenty to work with - I'll see how it goes. Cheers, Adrian Adrian O'Hagan wrote: I am embarking on my first multi-lingual site (English, Simplified Chinese and Traditional Chinese). It is to be a static site (no

Re: [WSG] Chinese translations and PHP includes

2006-03-20 Thread Micky Mourelo
Hi Adrian, when I save the include, all Chinese characters are rendered as a series of question marks. Could it be just a problem with your editor? Are you saving the file with the right encoding? What happens when you reopen the files on your editor? I do not place any header in my

Re: [WSG] Chinese translations and PHP includes

2006-03-20 Thread Adrian O'Hagan
Hi Micky, I am using Dreamweaver for this - and you may well be right that it is an editor issue. When I reopen the file in my editor, it all goes pearshaped. I will investigate the editor settings, or edit directly in simpletext... Thanks, Adrian Hi Adrian, when I save the include, all

Re: [WSG] Chinese translations and PHP includes

2006-03-20 Thread Adrian O'Hagan
Hi Ray, The include file has no defined charset, but should receive the same charset as the page it is being brought into. From Micky's post it may be more of an editor issue, which sits well with my current experience. Thanks, Adrian Is your include file written in the correct charset?

Re: [WSG] Chinese translations and PHP includes

2006-03-20 Thread Adrian O'Hagan
Thanks everyone, Issue resolved! Twas the evils of Dreamweaver - if I edit in SimpleText all is fine... Thanks again for your valuable help. Adrian. Hi Ray, The include file has no defined charset, but should receive the same charset as the page it is being brought into. From Micky's

Re: [WSG] Chinese translations and PHP includes

2006-03-20 Thread Lachlan Hunt
Adrian O'Hagan wrote: I am using Dreamweaver for this - and you may well be right that it is an editor issue. In Dreamweaver, set the default file encoding to UTF-8 and use Unicode for all files. Avoid using any legacy encodings. Edit Preferences... (or Dreamweaver Preferences... on Mac)

Re: [WSG] Chinese translations and PHP includes

2006-03-20 Thread Andrew Cunningham
Lachlan Hunt wrote: Use html lang=zh Or, if you insist on XHTML, you *must* declare the xmlns and should use xml:lang as well. html xmlns=http://www.w3.org/1999/xhtml; xml:lang=zh lang=zh Such a language code would be ambiguous and could have unintended rendering consequences in