ispCP - Board - Support
[Solved] Why are special chars not displayed correctly on my Debian systems? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [Solved] Why are special chars not displayed correctly on my Debian systems? (/thread-7498.html)

Pages: 1 2


[Solved] Why are special chars not displayed correctly on my Debian systems? - theprincy - 08-14-2009 05:13 AM

I made the change that is described in this article does not change anything, but why?

http://www.assolavori.it/test.html


RE: Why are special chars not displayed correctly on my Debian systems? - BeNe - 08-14-2009 05:16 AM

I have this output
Code:
è é ò à Ã¬ ù
Ok or not?
What locales are installed on the Server ?

Greez BeNe


RE: Why are special chars not displayed correctly on my Debian systems? - rbtux - 08-14-2009 05:19 AM

Try to remove the adddefaultcharset from /etc/apache2/conf.d/charset file...


RE: Why are special chars not displayed correctly on my Debian systems? - theprincy - 08-14-2009 05:24 AM

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.


RE: Why are special chars not displayed correctly on my Debian systems? - rbtux - 08-14-2009 05:37 AM

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" />


RE: Why are special chars not displayed correctly on my Debian systems? - theprincy - 08-14-2009 05:44 AM

nothing


RE: Why are special chars not displayed correctly on my Debian systems? - rbtux - 08-14-2009 05:47 AM

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..


RE: Why are special chars not displayed correctly on my Debian systems? - theprincy - 08-14-2009 05:49 AM

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


RE: Why are special chars not displayed correctly on my Debian systems? - rbtux - 08-14-2009 05:50 AM

please post /etc/apache2/conf.d/charset


RE: Why are special chars not displayed correctly on my Debian systems? - theprincy - 08-14-2009 05:56 AM

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 #