Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

hebrew inside alert box

Posted on 2007-11-16
11
Medium Priority
?
977 Views
Last Modified: 2010-05-18
when i use script to alert("dfdfd")
yes...the same javascript alert with the ok button...
all my hebrew looks like this:
?????? ?????-???? ??????
?????????.
it sure not hebrew:)

someone here bump into the same problem?
0
Comment
Question by:sasha85
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
11 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 20298425
1. set the codepage of the page to hebrew (windows-1255) or utf8
2. save the page with hebrew or utf8
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 20298444
http://www.w3.org/International/tutorials/bidi-xhtml/

alert("\u05DD\u05D5\u05DC\u05E9")
0
 

Author Comment

by:sasha85
ID: 20298483
alert("\u05DD\u05D5\u05DC\u05E9")
?:)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 20298536
Alternative to setting the codepage is to alert directly in unicode as I did in the alert
0
 

Author Comment

by:sasha85
ID: 20298569
the problem is that my page is already in utf8...
and inspite of it
alert("×’×›×’×¢×’×›×¢×’×›×¢×’×›")
got me
????????????
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 20298590
Did you save the actual file in utf8?
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 20298631
Perhaps better this way round:
alert("\u05E9\u05DC\u05D5\u05DD");



alert("\u05d6\u05b0\u05d0\u05b5\u05d1");



0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 750 total points
ID: 20298642
If I can show it, I do have hebrew everywhere here:


<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<div id="test">
Listen to a recording of this text by גל ויסברג (Gal Weisberg)
</div>
 
<script>
alert("\u05DD\u05D5\u05DC\u05E9\n"+document.getElementById('test').innerHTML+'\n'+"גל ויסברג")
</script>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 20298652
The weird text is actually hebrew in my pspad editor and is shown as such by the browser too once I saved it as utf-8
0
 

Author Comment

by:sasha85
ID: 20298752
ok...thank you:)
i think it because of my host acount...it recoding all what i saved...
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 20303899
So may I ask why a "B" grade - if you could not verify my answer is correct, then you could have waited. If it was not correct, then it should not have been accepted.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question