开发者

javascript alert message russian text

开发者 https://www.devze.com 2023-01-27 18:12 出处:网络
how do i givea alert message in russian text? these chars means name = & #1048;& #1084;& #1103;

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

精彩评论

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