[CentOS] encoding

Sat Apr 3 21:19:13 UTC 2010
Niki Kovacs <contact at kikinovak.net>

cahit Eyigünlü a écrit :
> Thank you for feed back but there is sth. complicated then using ascii 
> characters
> 
> let me try to describe :
> 
> i have created a folder with name şiğüı and it is ok.
> but i have copied a file that i 've created on another linux machine 
> (that is not mine)
> it seems like ����� and that cause to not only file name it also 
> encounters on all hosted site which is copied from other server
> but this names seems ok on terminal , it only seems like ���� on the web 
> pages and the contents of this files seems like this , but if i rewrite 
> the page with the same non latin chars , everything is ok.
> 
> i have try to change httpd.conf
> page encodings , php settings ......
> 
> do you have any advice please.....

I'm not sure to fully understand your problem, but I guess it relates to 
displaying special characters in web pages. So here goes.

1) Always specify encodings in the web pages themselves. Here's a header 
section of a webpage of my site, to give you an idea :

<!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" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Microlinux - Solutions Linux et logiciels libres</title>

2) Edit /etc/httpd/conf/httpd.conf and try this option :

AddDefaultCharset Off


Hope that helps.

Niki