farsi language auto-detection in web pages

2005-08-09 Thread mohsen ali momeni
Hi, How can I auto-detect language of a webpage without knowing it's charset? (suppose language and charset is not defined in header) Is there a simple (not time-consuming) method to detect a page charset? Regards, -- __ \ /_\\_-//_ Mohsen A. Momeni /\_\\_/\_/_/ Software Developer @

Re: Date data type in MySQL

2005-06-06 Thread mohsen ali momeni
Hi, I was wondering how Date data type is dealt with in such databases as PostgreSQL or mySQL? Databases usually have Date related operations such as equality, less than, greater than, etc . But most databases have the Gregorian Calendar and not Jalalian. Any solutions or hacks?

Re: PersianComputing Digest, Vol 23, Issue 2

2005-04-15 Thread mohsen ali momeni
Hi ! hi every one i have a problem in mysql data base is that when i reveiw my table cotained data in PhpMyAdmin in persian i can see and edit data correctly but when i use my script to query my tables using PHP it display my table data as a '?' (question marks) i am using mysql server

Re: PersianComputing Digest, Vol 21, Issue 13

2005-02-25 Thread mohsen ali momeni
Well, that's why I'm saying your implementation is not what MySQL people expect. The date data type is representation-agnostic itself, and AddDate, DateDiff, etc work with the date data type (at least in MySQL). What you need is functions to covert from internal date representation to

Re: PersianComputing Digest, Vol 21, Issue 6 (fwd)

2005-02-22 Thread mohsen ali momeni
Hi , I talked to Roozbeh Pournader about your mail. Seems like you are using an old version of the code, which has the problem as you mentioned. Our latest code is available from address below and doesn't have that problem: http://www.farsiweb.info/jalali/jalali.c Thanks for your

Re: PersianComputing Digest, Vol 21, Issue 5

2005-02-16 Thread mohsen ali momeni
Hello, About jalali or Iranian calender, i think fighting about what the name should be is of no use and will make a lot of problems for us. I know everything about them. that Jalali calender is based on calculation and iranian calender has a astoronomical basis. But all these arguments will lead

Re: PersianComputing Digest, Vol 17, Issue 8

2004-10-31 Thread mohsen ali momeni
Salaam, As I know begining from Mysql 4.1 it support persion sort. And this not need any patch. No , its not so .MySQL 4.1 uses cp1256 charset as default charset for persian data manipulation. The sort , search doesn't work correctly in cp1256. The mysql project team worked on adding UTF-8

Persian numbers in Glibc

2004-09-11 Thread mohsen ali momeni
Hello everyone, Does Glibc support persian numbers? i mean does it interpret persian numbers as real numbers? As i tested ,it's not so , i mean there is no support for persian numbers in glibc.am i right? Is there any application in linux supporting persian numbers?Should this support be added

tarjome be farsi

2004-09-06 Thread mohsen ali momeni
salam be hame doostan aya kalamate mo'tabar (ke hame estefade mikonan) baraye tarjomeye kalamati mese locale,wide character,multibyte character va ... dar zabane farsi vojood dare? inaro va kalamate shabih be ino chi tarjome mikonan? age linki darin ke inaro hame ba ham dare mamnoon misham