Posted By: Larsenal | Jun 20th, 2008 @ 4:10 PM
page 1 of 1
Comments: 10 | Views: 1266
Larsenal
Larsenal
ready to give an answer
I'm localizing a site into Japanese( and French).

First, what's a good text editor for this sort of thing?  I've been using EditPlus for years, but it renders the Japanese text as the ugly boxes.

Second, having never done a Japanese site, is there anything tricky to getting a page to display Japanese correctly?
Duncanma
Duncanma
Just Coding for Fun...
I'm assuming (because of the editor question) that you are creating copies of the actual web pages in these different languages, not localizing strings in a database or in a resource file or something like that...

Honestly, Notepad will do it.. but only if you are careful to always save as unicode... for some reason, it seems to default to ASCII ... and that just really sucks. I'm sure something like Visual Studio Express (web) would handle it as well...
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
Be careful when using Notepad for unicode (both utf-8 and utf-16). It adds a byte-order mark to the start of the file, and not all web browsers like that.
CannotResolveSymbol
CannotResolveSymbol
{insert caption here}
Also of interest may be Expression Web 2:  it supports Unicode correctly and it has full-blown support for PHP (with proper highlighting and intellisense!).
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
That shouldn't be a problem. Could you check (with Fiddler or something) if the server is indicating a charset for the CSS file?
CannotResolveSymbol
CannotResolveSymbol
{insert caption here}
edit: Channel 9 is eating my code!!!

Your server isn't sending a character set for either file, so Firefox has to guess the character set.  By default, Firefox uses the same character set as the page that's serving it (miraculously, Firefox is detecting this correctly Wink). 

You can fix this issue in three ways: 
(1) Make your web server send the correct character set in the HTTP headers.  Read the Apache docs on how to do this.

(2) Specify the character set in the <link> tag.   See http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#edef-LINK

(3) Author your document using UTF-8 instead of Unicode-16.  UTF-8 is backwards compatible with the ASCII character set (meaning you don't have to do either of the above) and can represent all characters in the Unicode character set.  In my opinion, this is the "right" way to do it.
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
I find my life is a lot easier since I just started saving all my files as utf-8. No worries that way, it always works.
page 1 of 1
Comments: 10 | Views: 1266
Microsoft Communities