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
http://fiddle.jshell.net/Qn84W/2/show/light/
Just alert the literal russian text? Assuming you serve the page as UTF-8.
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)
精彩评论