wadboram Posted October 5, 2011 Share Posted October 5, 2011 I'm having a membership site (PHP script) allowing members to have a conversation in the forms of send/receive forms. These messages are saved inside the database (Inbox)When I translated the language files and ran the script, all the Arabic translated text showed questions marks. so I added AddDefaultCharset WINDOWS-1256 line inside the .htaccess file and everything worked fine. The character encoding in the browser is showing (Arabic Windows 1256)Then when testing to send/receive messages between members, I got strange characters like this ظ…طظ…ط¯ طµظ„ط§ط ط§ظ„ط¯ظ?ظ† in both their mail boxes and also inside the database. But when I change the browser's character encoding to UNICODE (UTF-8), these messages appear right showing Arabic characters but the whole site's Arabic text shows question marks?I think there's a conflict in the encoding for the site... Can anyone help? Link to comment Share on other sites More sharing options...
Ingolme Posted October 5, 2011 Share Posted October 5, 2011 It means that your site's content is saved in a different encoding. Open your website's files in a text editor and change their encoding to UTF-8. Link to comment Share on other sites More sharing options...
wadboram Posted October 5, 2011 Author Share Posted October 5, 2011 You mean ALL the .php and .tpl files ? Shall I use Notepad ++ for this? Link to comment Share on other sites More sharing options...
wadboram Posted October 5, 2011 Author Share Posted October 5, 2011 Doesn't work? On the contrary things gone mad as a result so I restored all files again Link to comment Share on other sites More sharing options...
wadboram Posted October 6, 2011 Author Share Posted October 6, 2011 I managed to fix it the primitive way cause I couldn't trace where the error is?Backed up everything,installed a fresh clean script and update necessary file. It took me around 3 hours. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.