Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Character set displaying properly on local, not on test

Posted on 2009-05-14
7
225 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

856 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