简体   繁体   中英

Javascript can't understand russian letters

var letter1 = "ю"

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM