Parag
Parag

Reputation: 4812

javascript alert message russian text

how do i give a alert message in russian text?

these chars means name = & #1048;& #1084;& #1103; if you put them in normal html , it shows Имя

Thanks in advance for any help

Upvotes: 0

Views: 1325

Answers (2)

SLaks
SLaks

Reputation: 887887

You can use arbitrary Unicode characters in Javascript string literals.

You can also use hexadecimal escape codes: "\u0418..." (You'll need to convert to hex)

Upvotes: 2

meder omuraliev
meder omuraliev

Reputation: 186672

http://fiddle.jshell.net/Qn84W/2/show/light/

Just alert the literal russian text? Assuming you serve the page as UTF-8.

Upvotes: 2

Related Questions