PDA

View Full Version : Default Encoding


pzaully
06-21-2006, 07:12 PM
From what I understand, the server in which my hosting is on has a default charset set to ISO-8859-1, is there anyway to get this commented out so that we can specify which encoding we wish to use in the document itself, instead of having to try to override it with an .htaccess fle.

Wasnt ISO-8859-1 abandoned by ISO/IEC in favor of UTF-8?



Paul

Matt
06-21-2006, 08:07 PM
Override via a .htaccess file inside the directory serving the request with the following line:


AddDefaultCharSet UTF-8


You can just stick it under /var/www/html/ if you want all pages to be served up with that encoding.

If I remember correctly, way back when we switched from Apache 1.3 to 2.0 some three years ago, we ran into problems with conflicting character sets. Apache 2.0 sends the encoding in the header, instead of deferring it to the meta tags, which can lead to some garbled pages. Some did break during the transition with the default UTF-8 character set, so to play it safe with future users we reverted back to the dominant encoding, latin-1.

It probably was abandoned and rightfully so as latin-1 is terrible when it comes to internationalization.

pzaully
06-22-2006, 01:47 AM
works for me, thanks for the reply