LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2010, 12:02 PM   #1
impelmedia
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
Question Linux Server Character Encoding - what do I need to install?!?


Hello!

I hope somebody can help...we have a dedicated linux server for our web hosting services which we purchased a few months ago...however the support is limited and every time we ask for assistance we are told to find the answer ourselves and pay the techies to install our solution! Anyway... we seem to have issues with character encoding on our websites - any text that isn't fully ASCII coded is outputted as funny symbols - for example:

Acting as a “4 PL” – we will manage your operation, achieving agreed service and cost.

Should read as:

Acting as a 4 PL we will manage your operation, achieving agreed service and cost.

This is text that is updated via a CMS, and our clients do not code any HTML at all so obviously this is a problem! Does anyone know which library I need to install on our linux box so that these characters are processed properly in the first place?

Thank you in advance!!!
 
Old 03-15-2010, 12:10 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
The issue is with the CMS in my opinion.
 
Old 03-15-2010, 12:16 PM   #3
impelmedia
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
We have the same problem on other sites - sites that had worked on our old windows server suddenly started outputting the funny characters until we changed the coding on the pages....
 
Old 03-15-2010, 12:39 PM   #4
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Well, do that again then
 
Old 03-15-2010, 12:52 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Crdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
The problem can be in one of many levels, and not necessarily in Linux.

Your CMS (or whatever) needs to produce sane pages that comply with one of the W3C standards. So, the first question I ask is: what HTML version are you using? (as in HTML 4.01, XHTML 1.0 Strict/Transitional, whatever else). This is critical.

Second question, have you validated the resulting web pages against the W3C validator? In the case it applies, do your web pages have a valid header with a correct doctype and a correct chatset setup. The way to do this will of course depend on the doctype you choose. Each one has its own rules. If everything is correct, then you shouldn't need to change anything. The fact that your web server is running in one or another OS shouldn't be a thing to worry about these days if your setup is correct. But it will be most times because of incorrect setups that doesn't adhere to any standard and rather rely on peculiarities of one or another concrete web browser.

ps. If the problem does only appears in the dynamic contents and not the static text it could also be an issue with your databases.

Last edited by i92guboj; 03-15-2010 at 12:58 PM.
 
Old 03-16-2010, 04:54 AM   #6
impelmedia
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
The site has the following document type and character set:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

The W3 validator confirmed this was OK...

Also - the problem occurs in all elements on a page - the static website content and that dynamically generated...I am just most concerned about the info pulled from the database because it is that which our clients update who will not code...

Also - this site has been working as is (no changes to the source code) on a different server, so I can only deduce that the problem is on our server...

Any ideas?

Thanks for all your help so far!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
character encoding wakatana Linux - Newbie 3 10-13-2009 11:13 AM
Firefox Character Encoding Ingla Linux - General 4 10-13-2008 07:07 AM
Character encoding in this page dive General 1 03-16-2008 06:55 PM
character encoding issue gearoid_murphy Linux - General 0 12-07-2007 10:23 AM
firefox character encoding:help wetnose23 Slackware 3 05-28-2006 09:48 PM


All times are GMT -5. The time now is 01:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration