Help - Search - Members - Calendar
Full Version: RHE / Plesk7 / And special Characters.
The Planet Forums > Control Panels > Plesk
Galactic Zero
I'm running a RHE / Plesk 7 box. I'm coding pages with this tag:
between the head tags.

Now, my browser picks up the page and decideds to encode it at utf-8 making the special characters show up as question marks. I turn off auto-select in the browser and then back on, picks up the 8859.

Shut down IE, blow away temp pages/ cache etc.. open and goto the site again, no auto select on, still encodes as utf-8 even though that Meta tag is in the Header of the page. Do it again with auto select enabled and, you guessed it, UTF-8 again.

I've tried both HTML and CSS to try and fix this and haven't had any success. I've searched high and low for a solution to this problem or a hint as to how to fix it and haven't yet found a solution.

So, anyone have any clues or solid fixes for this?

Thanks
Franklyn Halamka
Galactic Zero.
Galactic Zero
Ok, a nice kind individual over on the Plesk forums got me my answer.

Basically, in httpd.conf there is a setting that needs to be disable if your running apache 2.

QUOTE
# Specify a default charset for all pages sent out. This is
# always a good idea and opens the door for future internationalisation
# of your web site, should you ever want it. Specifying it as
# a default does little harm; as the standard dictates that a page  
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
# are merely stating the obvious. There are also some security
# reasons in browsers, related to javascript and URL parsing
# which encourage you to always set a default char set.
#  
AddDefaultCharset UTF-8


I commented out AddDefaultCharset UTF-8 and all my special characters, (em dashes, curly quotes, etc...) started to work again as intended.

What was happening is the server is overriding the meta tag and the browsers are getting confused as to which char set to show.

Hope this helps someone else with this issue.
Allan
Had the same problem RHE and Ensim
This solved my problem.
Thank you very much!!!
REBIS
Same here Thanks!
gdmg
Same Here and Thanks a bunch!
btauler
Same, here, but some client had tiki installed and I even I solved the problem for the special char to other clients tiki weblog was still showing wrong chars,

I had to modify my php.ini and modify line:

default_charset from utf to iso-8859-1

Hope that helps any one too...
autoquartz
One exception here....

It seems to work for my client page orange2u.com but not www.orange2u.com. It is just a CNAME in the DNS.

Any clue? Thanks.
Renato
GREAT
That worked out for me too.

In order to have fixed both DNS entries:
www.domain.com and
domain.com
You have to also make the chage (uncomment in my case) in the site php.ini file.

cheers,

renato
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.