0

In an oscommerce site I have the following:

Server response = Content-type: text/html;charset=UTF-8

and I want: Content-type: text/html;charset=ISO-8859-1

How and where do I set this up.


Html looks like this on the page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html dir="LTR" lang="nl"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Changing it to: utf-8 doesnt solve the problem.

Brock Adams
  • 90,639
  • 22
  • 233
  • 295
Mischa Kroon
  • 1,772
  • 1
  • 13
  • 19
  • 1
    What's wrong with UTF-8 (said differently, for which bad reason do you need to change?) – Keltia Jan 06 '09 at 23:43
  • Because somehow the characters which aren't standard show up as boxes isntead of what they are supposed to be if I don't manually change the browser encoding to iso ... – Mischa Kroon Jan 07 '09 at 00:56
  • Changing the type to utf-8 w/o changing the characters themselves will not fix it as you have seen. You'd be better changing all pages to UTF-8. – Keltia Jan 07 '09 at 09:18
  • As I've seen the accepted answer works for me, your "solution" won't work in this case. – Mischa Kroon Jan 12 '09 at 12:52
  • http://forums.oscommerce.com/lofiversion/index.php?t105082.html Check the last two posts on that page and see if they help. – Salty Feb 20 '11 at 18:31
  • Don't help, included more information in question. – Mischa Kroon Feb 20 '11 at 18:31

2 Answers2

0

in an .htaccess file

AddDefaultCharset ISO-8859-1
Luis Melgratti
  • 11,881
  • 3
  • 30
  • 32
0

Note that (especially for a commerce site) you should use ISO-8859-15 instead, which includes the Euro sign.

David Segonds
  • 83,345
  • 10
  • 45
  • 66
Michael Borgwardt
  • 342,105
  • 78
  • 482
  • 720