PDA

View Full Version : arabic language support


wessam
08-03-2004, 12:30 AM
Thanks
i have another problem
i asked befor about arabic language support and u sent to me these block of code:

define('PHPDIG_ENCODING','iso-8859-6');

$phpdig_string_subst['iso-8859-6'] = 'Q:Q,q:q';

$phpdig_words_chars['iso-8859-6'] = '[:alnum:]¤¬»¿ÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚ*áâãäåæ èéêëì*îïðñò';

when i try search after apply these code with iso-8859-6 return no result for arabic but it's return all result for english languge ..
i think it's can't recognize the arabic characters when query search ..

$phpdig_words_chars['iso-8859-6'] = '[:alnum:]¤¬»¿ÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚ*áâãäåæ èéêëì*îïðñò';
"mean all arabic chracters ??"

im sorry .. im just new with php im developer on asp and asp.NET
any more help pls

Charter
08-03-2004, 11:26 AM
Hi. If this (http://www.tachyonsoft.com/iso88596.htm) shows all the Arabic characters and they match up with the following:

A0-AF: ¡¢£¤¥¦§¨©ª«¬_®¯
B0-BF: °±²³´µ¶·¸¹º»¼½¾¿
C0-CF: ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ
D0-DF: ÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß
E0-EF: *áâãäåæçèéêëì*îï
F0-FF: ðñòóôõö÷øùúûüýþÿ

Then the PhpDig variables are set correctly. If the PhpDig variables are in fact set correctly, then the same encoding used to index needs to be the same encoding used to search. PhpDig does not currently support multiple encodings.

Also, the database may or may not need to understand the encoding and/or you may need to ALTER TABLE keywords MODIFY keyword VARCHAR(64) BINARY; for certain encodings.