HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   charset issue. (http://www.howtoforge.com/forums/showthread.php?t=20433)

lifeisboost 15th February 2008 06:22

charset issue.
 
Hello all i have an issue

I have a big client wanting to move all of his sites to my server. BUT i moved one of his sites and im having an issue.

http://viper.wssnoc.net/web40/web/index.html

if you look there, alot of the characters are replaced with question marks. my server has the SAME charsets installed in httpd.conf as his server does. but yet it still does this. his sites are the only ones i have this issue with. can anyone give some insight as to what to look at next? im lost.

till 15th February 2008 10:51

Please set the correct character set the correct default charset in the apache.conf, apache2.conf or httpd.conf file.

If the charset is really correct, then the files might have been copied with the wrong charset. Open the files on the shell and check if the charset apperas correct there.

lifeisboost 15th February 2008 18:00

when i view the file through nano this is what one of the words look like Y^Ćall

when it should be Y’all

lifeisboost 15th February 2008 18:07

httpd.conf settings FC5

AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage zh-tw .tw
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage zh-tw .tw
AddLanguage tw .tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8


AddDefaultCharset UTF-8

falko 16th February 2008 17:29

Try
Code:

AddDefaultCharset SO-8859-1
...

Quote:

when i view the file through nano this is what one of the words look like Y^Ćall

when it should be Y’all
... and correct the wrong characters in all files.

lifeisboost 16th February 2008 20:16

no luck falko when i put that default charset, it kills another website that uses JP text. it replaces the symbols with the funky code until i reset the default to utf-8. Also when i download the web pages with the issue form the new client, the code displays correctly. it sonly when viewed from the web page and from nano on the server it shows those question marks or bad characters

jnsc 16th February 2008 22:35

So Just set this in the Vhost of the concerned site.

lifeisboost 16th February 2008 23:18

I did set it in the vhost of that site to correct it. but it does not fix the new clients site. I do not under stand why when i download the source it is fine, but view it on a web browser on the server or through NANO, it has the odd characters.

lifeisboost 20th February 2008 15:47

i fixed it all i did was add this tot he directives for any site that had the issue

AddDefaultCharset Off


All times are GMT +2. The time now is 12:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.