Solved

Character set displaying properly on local, not on test

Posted on 2009-05-14
7
224 Views
Last Modified: 2012-05-07
Hello,

Two images attached, one from my local host and Arabic is properly displayed.  The other from my test server, which does have Arabic character set installed, will not display correctly.

Any ideas?
local.gif
test.gif
0
Comment
Question by:vrmetro
  • 4
  • 2
7 Comments
 
LVL 7

Assisted Solution

by:ycTIN
ycTIN earned 100 total points
ID: 24386595
maybe is your html missing META Language Tag
http://www.seoconsultants.com/meta-tags/language.asp
0
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 400 total points
ID: 24386853
What character set are you using?
0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 400 total points
ID: 24386858
I'm thinking you want to look for a META tag like this one...
<META HTTP-EQUIV="CONTENT-TYPE" content="text/html;CHARSET=iso-8859-1" />

Open in new window

0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:vrmetro
ID: 24386910
There is a character encoding mis-match from the header and my meta tag, see validation link below.

How do I adjust the HTTP header information?
http://validator.w3.org/check?uri=http://test.findwhere.com:9021/s/ar/shop/device&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator/1.654

Open in new window

0
 
LVL 109

Assisted Solution

by:Ray Paseur
Ray Paseur earned 400 total points
ID: 24387009
Try this... Throw out the meta tag and see what happens.
0
 

Author Comment

by:vrmetro
ID: 24387326
Not sure if it was a combination of validation errors or php sending a different header, i force the utf-8 http header and corrected the errors, and now its working!
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 24387926
Great!  Glad you got it working.  Inconsistent character sets cause all kinds of strange things, and that issue sometimes includes the data base, as well.

Thanks for the points, ~Ray
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
paypal ipn to mysql 3 36
echo paypal data on screen 5 50
how to use 2 SELECT statements with prepared statements 19 30
How would I do this...? 2 28
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question