Javascript无法理解俄语字母

时间:2022-08-02 20:53:39
var letter1 = "ю"

This will return some obscure character. Does anybody have a way to add Russian characters to javascript

这将返回一些不起眼的角色。有没有人有办法向javascript添加俄语字符

1 个解决方案

#1


0  

Use a unicode character: var letter1 = '\u044E'

使用unicode字符:var letter1 ='\ u044E'

Check more at http://jrgraphix.net/r/Unicode/0400-04FF

请访问http://jrgraphix.net/r/Unicode/0400-04FF查看更多信息

#1


0  

Use a unicode character: var letter1 = '\u044E'

使用unicode字符:var letter1 ='\ u044E'

Check more at http://jrgraphix.net/r/Unicode/0400-04FF

请访问http://jrgraphix.net/r/Unicode/0400-04FF查看更多信息