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