Character set displaying properly on local, not on test

Posted on 2009-05-14
Last Modified: 2012-05-07

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?
Question by:vrmetro
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
  • 4
  • 2

Assisted Solution

ycTIN earned 100 total points
ID: 24386595
maybe is your html missing META Language Tag
LVL 110

Assisted Solution

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

Accepted Solution

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

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?

Open in new window

LVL 110

Assisted Solution

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

Author Comment

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!
LVL 110

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

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Make login page safer 3 32
How to use session variables in php? 22 51
PHP encrypted string and passing to a ASP Page 12 48
A responsive image gallery using flexbox 6 23
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
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.

733 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