comparing characters in RTL laanguage

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

comparing characters in RTL laanguage

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

how execlly do i use the UTF-8?

Post by pelegk2 »

thansk agaib
peleg
Post Reply