Re: How to check if string is in Hebrew

2011-02-28 Thread Ian Clelland
On Sun, Feb 27, 2011 at 3:01 PM, ydjango wrote: > Hebrew is within the unicode range 0x590 to 0x5ff. > > I tried > if lang_string[0] >= u'0x590' and lang_string[0] <= u'0x5ff': > > but it does not seem to work. That isn't the correct syntax for unicode string literals. What you are trying to do s

Re: How to check if string is in Hebrew

2011-02-27 Thread Ori Livneh
On Sun, Feb 27, 2011 at 6:01 PM, ydjango wrote: > Hebrew is within the unicode range 0x590 to 0x5ff. > > I tried > if lang_string[0] >= u'0x590' and lang_string[0] <= u'0x5ff': > > but it does not seem to work. > > How do I check if lang_string is in Hebrew or not. Using Python 2.5, > Django 1.2