dpmp9359
dpmp9359
2009-01-06 23:39

在oscommerce / sts模板网站中设置iso-8859-1而不是utf-8?

已采纳

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.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • douche1913 douche1913 12年前

    in an .htaccess file

    AddDefaultCharset ISO-8859-1
    
    点赞 评论 复制链接分享
  • doutan1671 doutan1671 12年前

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

    点赞 评论 复制链接分享