Solved

Character set displaying properly on local, not on test

Posted on 2009-05-14
7
222 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 108

Assisted Solution

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

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 108

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 108

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

914 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

17 Experts available now in Live!

Get 1:1 Help Now