PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   arabic language support (http://www.phpdig.net/forum/showthread.php?t=1151)

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 shows all the Arabic characters and they match up with the following:
Code:

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.


All times are GMT -8. The time now is 02:47 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.