Link to home
Start Free TrialLog in
Avatar of sasha85
sasha85

asked on

hebrew inside alert box

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?
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

1. set the codepage of the page to hebrew (windows-1255) or utf8
2. save the page with hebrew or utf8
Avatar of sasha85
sasha85

ASKER

alert("\u05DD\u05D5\u05DC\u05E9")
?:)
Alternative to setting the codepage is to alert directly in unicode as I did in the alert
Avatar of sasha85

ASKER

the problem is that my page is already in utf8...
and inspite of it
alert("×’×›×’×¢×’×›×¢×’×›×¢×’×›")
got me
????????????
Did you save the actual file in utf8?
Perhaps better this way round:
alert("\u05E9\u05DC\u05D5\u05DD");



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



ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of sasha85

ASKER

ok...thank you:)
i think it because of my host acount...it recoding all what i saved...
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.