Current time: 11-15-2024, 01:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
[Solved] Why are special chars not displayed correctly on my Debian systems?
Author Message
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #1
[Solved] Why are special chars not displayed correctly on my Debian systems?
I made the change that is described in this article does not change anything, but why?

http://www.assolavori.it/test.html
(This post was last modified: 08-14-2009 07:01 AM by rbtux.)
08-14-2009 05:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Why are special chars not displayed correctly on my Debian systems?
I have this output
Code:
è é ò à Ã¬ ù
Ok or not?
What locales are installed on the Server ?

Greez BeNe
08-14-2009 05:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #3
RE: Why are special chars not displayed correctly on my Debian systems?
Try to remove the adddefaultcharset from /etc/apache2/conf.d/charset file...
08-14-2009 05:19 AM
Visit this user's website Find all posts by this user Quote this message in a reply
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #4
RE: Why are special chars not displayed correctly on my Debian systems?
cat /etc/locale.gen

.....
# it_CH ISO-8859-1
# it_CH.UTF-8 UTF-8
it_IT ISO-8859-1
it_IT.UTF-8 UTF-8
it_IT@euro ISO-8859-15
# iu_CA UTF-8
# iw_IL ISO-8859-8
# iw_IL.UTF-8 UTF-8
......

root@roma:/var/www/virtual/assolavori.it/htdocs# locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
(08-14-2009 05:19 AM)rbtux Wrote:  Try to remove the adddefaultcharset from /etc/apache2/conf.d/charset file...

had commented on the item, I removed the comment and restarted apache but it does not work, I gave a dpkg-reconfigure locales
But nothing has changed
(08-14-2009 05:16 AM)BeNe Wrote:  I have this output
Code:
è é ò à Ã¬ ù
Ok or not?
not ok

(08-14-2009 05:16 AM)BeNe Wrote:  What locales are installed on the Server ?

Greez BeNe


root@roma:/var/www/virtual/assolavori.it/htdocs# locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=


root@roma:/var/www/virtual/assolavori.it/htdocs# locale-gen
Generating locales (this might take a while)...
it_IT.ISO-8859-1... done
it_IT.UTF-8... done
it_IT.ISO-8859-15@euro... done
Generation complete.
(This post was last modified: 08-14-2009 05:31 AM by theprincy.)
08-14-2009 05:24 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #5
RE: Why are special chars not displayed correctly on my Debian systems?
in your html change

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />

to

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
08-14-2009 05:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #6
RE: Why are special chars not displayed correctly on my Debian systems?
nothing
08-14-2009 05:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #7
RE: Why are special chars not displayed correctly on my Debian systems?
your webserver delivers the file as iso-8859-1, when i manually set the charset to utf-8 it works...

please set the charset of the file as unicode (utf8) with your preferred editor..
08-14-2009 05:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #8
RE: Why are special chars not displayed correctly on my Debian systems?
the problem makes it even with cms like joomla or wordpress

http://www.assolavori.it/

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="it-IT">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
the test.html file has been created through nano editor
(This post was last modified: 08-14-2009 05:50 AM by theprincy.)
08-14-2009 05:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #9
RE: Why are special chars not displayed correctly on my Debian systems?
please post /etc/apache2/conf.d/charset
08-14-2009 05:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
theprincy Offline
Member
***

Posts: 311
Joined: Nov 2008
Reputation: 2
Post: #10
RE: Why are special chars not displayed correctly on my Debian systems?
cat /etc/apache2/conf.d/charset
# Read the documentation before enabling AddDefaultCharset.
# In general, it is only a good idea if you know that all your files
# have this encoding. It will override any encoding given in the files
# in meta http-equiv or xml encoding tags.

AddDefaultCharset UTF-8

as I have said before, I tried both ways with both # ... that without #
(This post was last modified: 08-14-2009 05:57 AM by theprincy.)
08-14-2009 05:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 4 Guest(s)