Solved

Character set displaying properly on local, not on test

Posted on 2009-05-14
7
221 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
Comment Utility
maybe is your html missing META Language Tag
http://www.seoconsultants.com/meta-tags/language.asp
0
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 400 total points
Comment Utility
What character set are you using?
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 400 total points
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:vrmetro
Comment Utility
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 108

Assisted Solution

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

Author Comment

by:vrmetro
Comment Utility
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 108

Expert Comment

by:Ray Paseur
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now