开发者

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜