Problem with arabic charset!
Posted by: Felipe Arias
Date: September 20, 2010 10:40AM

Hello,

I have a problem migrating some text to joomla, i have a version that reads the data from the database and print the content, the encoding is utf-8 and everything is perfect.

But the same text in joomla is like this:

السلام عليكم
ألف مبروك الموقع وانشالله بالتوفيق

The php script that reads directly from the joomla database prints:

لسلام عليكم ألف مبروك الموقع وانشالله بالتوفيق

Joomla header:

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en-gb" lang="en-gb">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

Script:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">;
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
</head>

Any suggestion?

Update:

Using mysql_set_charset('utf-8',$variable); the script show the same than Joomla (bad display)

Im getting bad chars when i set the mysql charset handler... tried with cp1256 too and the characters are even worse... Just works without set charsets...

The analysis of the sql file is that the charset is utf8... i tried changing the charset on phpmyadmin... worse display

Options: ReplyQuote


Subject
Views
Written By
Posted
Problem with arabic charset!
6782
September 20, 2010 10:40AM
1775
September 24, 2010 10:49PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.