Ben Monastyrsky Ben Monastyrsky - 3 months ago 7
Javascript Question

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

Answer

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

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

Comments