HighDots Forums  

How to use EUC-JP charcter set in the overlib?

Javascript JavaScript language (comp.lang.javascript)


Discuss How to use EUC-JP charcter set in the overlib? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
y-w
 
Posts: n/a

Default How to use EUC-JP charcter set in the overlib? - 01-03-2008 , 06:07 PM






Hello !

I would like to use Japanese messages in the pop up that is shown
whenever you use the overlib for the javascript.

I assume that javascript that is used to show this pop up uses UTF-8
for the internal execution

The Japanese messages which I use is EUC-JP.

I would like to know where should I modify the source code in order
to implement this.
Do I need to add a special tag?

It would be a great help if I could get an advice with this.

Thank you!

Reply With Quote
  #2  
Old   
RobG
 
Posts: n/a

Default Re: How to use EUC-JP charcter set in the overlib? - 01-03-2008 , 09:17 PM






On Jan 4, 10:07*am, y-w <yu.watan... (AT) jp (DOT) fujitsu.com> wrote:
Quote:
*Hello !

*I would like to use Japanese messages in the pop up that is shown
*whenever *you use the overlib for the javascript.
Do not use overlib.js, it is truly awful stuff. The author seems to
think that only global variables need to be declared (and declares
over 100 of them), seems unaware that local variables exist, uses
browser detection and statements like:

...if (eval('o3_frame.'+docRoot)&&eval("typeof o3_frame."+docRoot...

that should scare you way for good.

Quote:
*I assume that javascript that is used to show this pop up uses UTF-8
*for the internal execution
Javascript it not the issue, it will simply insert whatever you tell
it to.

Quote:
*The Japanese messages which I use is EUC-JP.

*I would like to know where should I modify the source code in order
to implement this.
Do I need to add a special tag?
I think you should ask that in a forum dedicated to overlib.


--
Rob


Reply With Quote
  #3  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: How to use EUC-JP charcter set in the overlib? - 01-04-2008 , 02:23 PM



y-w wrote:
Quote:
I would like to use Japanese messages in the pop up that is shown
whenever you use the overlib for the javascript.

I assume that javascript that is used to show this pop up uses UTF-8
for the internal execution
That is highly unlikely, given the lack of minimum clue of overlib's author
and the fact that ECMAScript implementations use UTF-16LE internally.

Quote:
The Japanese messages which I use is EUC-JP.
That should not matter as long as both script resource and HTML document
resource are encoded so.

Quote:
I would like to know where should I modify the source code in order
to implement this.
You should use the matching encoding, and declare it in the Content-Type
header of both resources.

Quote:
Do I need to add a special tag?
No.


PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.