Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
I have a problem with JS HTML encoding
Old 10-16-2006, 01:21 PM I have a problem with JS HTML encoding
Average Talker

Posts: 15
Trades: 0
I have a problem with JS HTML encoding
When I use non latin characters in window.alert() I get nonsense
If I use it in document html like ᄋ 弫 ᄋ ᄋ and so on then it is shown ok but when I put the same code encoding into the alert() box I get these ᄋ 弫 ᄋ ᄋ but not non latin text
How to fix it? What are the possibilities?
eugene2008 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-17-2006, 01:46 AM Re: I have a problem with JS HTML encoding
seomumbai's Avatar
Skilled Talker

Posts: 98
Trades: 0
The default language that javascript supports is english. Other than english if you write any other language you will face problem.
seomumbai is offline
Reply With Quote
View Public Profile
 
Old 10-22-2006, 05:35 AM Re: I have a problem with JS HTML encoding
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
The default language that javascript supports is english
Nope

The default display language of javascript is the default language of the users computer

Alert boxes are controlled by the client computers operating system so if the language and character set are not installed you will not get the correct characters.
With HTML the charset specified in the page will determine the character set which is probably why it works there then does not in the alert.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to I have a problem with JS HTML encoding
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18360 seconds with 12 queries