|
Sorry, I don't have the code. You could easily
write a function in php that could convert from Unicode characters to a regular
font ones and vice-versa. You just have to make two sets of arrays containing
the Unicode and the corresponding font characters. Then after parsing the entry
words into individual letters you can do a switch. Hope this helps.
----- Original Message -----
Sent: Thursday, November 07, 2002 7:07
PM
Subject: Re: [farsiweb]unicode fields in
database
Bu I have problem to conver my inouts that are in
UniCode to character set such as that we used in DOS (VEGAF, SAYEH and so on)
I tryed to do this by find a charachter and use alternativ filed for that in
table. But I can not find the codes that I founnd in www.FarsiWeb.info (Persian Standard of
UniCode) have you any code for this?
I'm not agree you for chnage our font to latin
based. I think we must work on MySQL (that is an Open Source) and other
programs like that to support Farsi in good way. and this is my and your task
both ;-)
Best Regards,
Sadeq
----- Original Message -----
Sent: Sunday, November 10, 2002 9:22
AM
Subject: Re: [farsiweb]unicode fields
in database
I took a look at your site (YazdIndustry.com).
Very impressive. Do you require sorting when displaying the results
of a search? I know MySQL does not sometimes, for example, distinguish
between letters with diactritics and the ones without, like � and A or � and
a. What I have done to make sure MySQL does not
make these kinds of mistakes is to save the Persian words in 2
different ways. One using the 1256 format and the other using a regular
font. This way when you do a search for a word you will have to
check 2 entries if needed. For sorting you could use the font
entries since they are mostly in ASCII characters.
All these problems with the Arabic script makes
me a believer in changing our alphabet to a Latin-based one and getting
rid of all these unnecessary headaches :-)
Dr. Z.
----- Original Message -----
Sent: Thursday, November 07, 2002
6:22 PM
Subject: Re: [farsiweb]unicode fields
in database
No it is not. this is not PHP problem, I
think it is MySQL problem that not support unicode. You can write a simple
code to select the rows but never you will get soreted result in right
order :-(
I did not test it on Windows Server. But I
test it with ARABIC and UNICODE encoding both. and failed to get what I
want :((
Bests,
Sadeq Naqashzade
[EMAIL PROTECTED]
----- Original Message -----
Sent: Sunday, November 10, 2002
8:20 AM
Subject: Re: [farsiweb]unicode
fields in database
I guess for sorting you would just need to
write a few lines of code. It would not be too difficult.
----- Original Message -----
Sent: Thursday, November 07, 2002
5:27 PM
Subject: Re: [farsiweb]unicode
fields in database
Salaam,
What about persian sort? is it correct? I
use Unicode. I can do search and show texts using MySQL but my problem
in correct sort. You can see the example in www.YazdIndustry.com that is a
directory of Yazd Industrials that is under construction now but some
things is ready.
Regards
Sadeq
----- Original Message -----
Sent: Saturday, November 09,
2002 10:56 PM
Subject: Re: [farsiweb]unicode
fields in database
Hamid Rez�ye ger�mi:
Man b� "unicode" k�r nakardeam vali
tav�nestam b� bek�r bordane:
<META HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=windows-1256">
dar safheye xod, b� t�yp kardan be
P�rsi az b�nke "MYSQL" estef�de konam. In k�r besy�r s�de anj�m �od.
Mitav�nid bar�ye mes�l be safheye zir neg�h bekonid:
Sep�smandam,
Dr. Zurv�n
IL&S
|