Javascript - how to find hebrew?

Viewed 16102

i"m trying to fint if a string starts(first letter) width an RTL language/ hebrew.

any ideas?

5 Answers

This will find hebrew letters encoded in the Hebrew Unicode code point range: [\u0590-\u05FF]

if (str.charCodeAt(0) >= 0x590) && (str.charCodeAt(0) <= 0x5FF) then it is considered a hebrew character

Related