Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How to use EUC-JP charcter set in the overlib?

Reply
Thread Tools

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

 
 
y-w
Guest
Posts: n/a
 
      01-04-2008
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
 
 
 
 
RobG
Guest
Posts: n/a
 
      01-04-2008
On Jan 4, 10:07*am, y-w <yu.watan...@jp.fujitsu.com> wrote:
> *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.

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

>
> *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
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      01-04-2008
y-w wrote:
> 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.

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

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

> 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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Charcter Pointer Problem bent lee C Programming 12 09-23-2006 04:15 AM
Why is a character constant more than size of charcter variable? vb@gmail.com C Programming 6 08-06-2005 09:06 AM
Getting the xth bit of an unsigned charcter John.Doe.UK@gmail.com C Programming 8 03-11-2005 09:02 PM
End Record Charcter Bruce.Dobson Perl Misc 2 10-11-2003 11:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57