arabic charachters problem
Posted: 13 October 2007 06:08 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  69
Joined  09-10-2007

well.. everything was working fine on my local server.. but after uploading the site to the live server.. whenever I open a page, I fid it encoded in arabic (windows-1256) although it should be in Unicode (UTF-8)

and in firefox the site didn’t open.. I got this error message instead:

Content Encoding Error (content_encoding_error)

Server response could not be decoded using encoding type returned by server.
This is typically caused by a Web Site presenting a content encoding header of one type, and then encoding the data differently.

For assistance, contact your network support team.

Your request was categorized by SmartFilter as ‘Entertainment/Recreation/Hobbies’.
If you wish to question or dispute this result, please click here.

can any one help me with this issue please? smile

Profile
 
 
Posted: 14 October 2007 07:35 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23538
Joined  05-20-2002

Are you specifying the proper encoding in your headers- see {charset}:

<meta http-equiv="Content-Type" content="text/html; charset={charset}" />


And does that output as utf-8?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 14 October 2007 08:03 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  69
Joined  09-10-2007

yes.. in the html code it’s utf-8

well.. I guess the cause of this issue is the database import through phpmyadmin.. as I made a clean installation directly on my server and started copying and pasting the templates and content from my local server version.. and it’s working fine so far.. but I still have lots of content to copy and past :(

Profile
 
 
Posted: 14 October 2007 08:11 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23538
Joined  05-20-2002

Hm- you’d want to have the dev db set to use utf-8 and then it should stick when you export it.  But if it’s already in there as something else, it’s more problematic.  I suspect that’s the case- and encoding settings vary depending on your mysql version- so that may be at play as well.  When I create a db, I’ll generally set the collation at that stage and avoid the issue later on.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65026 Total Logged-in Users: 38
Total Topics: 82115 Total Anonymous Users: 15
Total Replies: 441305 Total Guests: 202
Total Posts: 523420    
Members ( View Memberlist )
Newest Members:  meenoiYang.JianuoioitsukiNathan HammondalexcigadamstaneckiLucas Mayscybermilltstitt