Fast background . I inherited a large sql dump file containing a combination of English and Arabic text, and (I think) it was originally exported using "latin1". I changed all occurrences of "latin1" to "utf8" before importing the file. Arabic text did not display correctly in phpmyadmin (which I assume is normal), but when I uploaded the text to a web page with the following ...
<meta http-equiv='Content-Type' content='text/html; charset=windows-1256'/>
... everything looked good, and the Arabic text displayed perfectly.
Problem : my client is really really very picky and doesn't want to change it ...
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
... the equivalent of "Windows-1256". I did not think this would be a problem, but when I changed the encoding value to "UTF-8", all Arabic characters appeared like diamonds with question marks. Should UTF-8 correctly display Arabic text?
Here are some notes about my database configuration:
- Database Encryption - "utf8"
- The combination of database connections is "utf8_general_ci"
- All databases, tables, and related fields were mapped as "utf8_general_ci"
I cleared the stack overflow and other forums for everything related to my problem. I found similar problems, but no solutions seem to work for my specific situation. Hope someone can help!
source share