Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript & Japanese

Status
Not open for further replies.

mjpost

Technical User
Feb 4, 2002
9
AU
Just finished building a client image gallery with dozens of image rotators by theme, magazine article, & link rotators. Works well in english & german. It looked good, until I had to fill my arrays with lines like:

» ‚©‚Ȃ́@‚¶‚ñ‚»‚­@‚Ɓ@‚«‚½‚È‚¢@"ú–{Œê@‚ß‚ ‚Ä
(kanano jinsokuto kitanai nihongo meate)

This screws up my dynamically generated framesets regardless of the encoding selected. My default encoding is Japanese (Shift-JIS).

As you can guess, there are miles of japanese text, so converting everything to images is just not practical.

The right frame holds the article or image, while the left frames provides the english translation. The banner frame provides details of the item such as title, subject, comment, etc. The footer provides navigation links.

I used dense arrays, because I received the data in .CSV format & I wanted to emulate a database. Also, they worked well with the latin based alphabet:

» TpcInf[TpcInf.length]=['','','../SETTINGS/HTM.GIF','KQDGJ.HTM','‚©‚Ȃ́@‚¶‚ñ‚»‚­@‚Ɓ@‚«‚½‚È‚¢@"ú–{Œê@‚ß‚ ‚Ä','Kana Quick and Dirty Guide to Japanese','Only covers particles (those ‚́A‚ªA‚ðA‚ŁA‚Ɂ•‚Ö thingies) and verb conjugations.','','','','../SETTINGS/HTM16.GIF','Show: SHOW.HTM'];

That is my story of woe.

So, what is the solution?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top