Setting iso-8859-1 instead of utf-8 in oscommerce / sts template website?

孤街浪徒 提交于 2019-12-25 00:13:44

问题


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.


回答1:


in an .htaccess file

AddDefaultCharset ISO-8859-1



回答2:


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



来源:https://stackoverflow.com/questions/418650/setting-iso-8859-1-instead-of-utf-8-in-oscommerce-sts-template-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!