Page 1 of 1

php arabic encoding

Posted: Thu Aug 18, 2005 12:27 pm
by zedan
Hallo
i have problem in arabic encoding
i have built a page using front page in arabic after i saved that page and every thing is OK, i closed front page and open it again to add some variables that hold arabic data after i saved the page and display it i found that every thing GONE no arabic its some thing else but not arabic i tried many ways to find out how to solve but no way.

i heard that some built-in functions can help me like mb-detect-encoding but its not working..

i m buildling a forum and i stop coding until i solve this problem.


thanks

Posted: Thu Aug 18, 2005 1:32 pm
by Roja
Okay, several issues.

First, frontpage is really not ideal for non-american languages. A really similar package that has better support for arabic would be http://www.nvu.com .

Its more recent, has better multi-language support, and should suit your needs.

Next, I highly recommend using UTF-8 for your page. That way you can present multiple languages instead of just one, and in a format that most portable browsers (cellphones, etc) can support.

To do so, you need to place this tag inside

Code: Select all

<head> ... </head>
:

Code: Select all

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
If you have further problems, we can try to help from there.

Posted: Thu Aug 18, 2005 4:46 pm
by feyd
I'd also recommend sending the UTF-8 header too:

Code: Select all

header('Content-Type: text/html; charset="UTF-8"');