Page 1 of 1

comparing characters in RTL laanguage

Posted: Tue Jan 25, 2005 9:07 am
by pelegk2
when i try to do :

Code: Select all

$accept =($strї3] == 'כ')? 1:0;
it dosent tell me correct on the "כ" letter (its a hebrew letter)

when i try to do :

Code: Select all

$accept =strcmp($strї3],"כ") ? 1  : 0 ;
it works on win2000
but on 2003 server it dosent
where can be the problem?
thnaks in advance
peleg

Posted: Tue Jan 25, 2005 9:13 am
by feyd
I would imagine the character sets are set differently, by default on each. Comparing the entity form of 'כ' or whatever it is in lexical form should be okay however. If you don't want to convert to entity, there's always UTF-8..

how execlly do i use the UTF-8?

Posted: Tue Jan 25, 2005 10:47 am
by pelegk2
thansk agaib
peleg