瑞典人字符和UTF-8 [英] Swedish characters and UTF-8
本文介绍了瑞典人字符和UTF-8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的所有页面上都使用UTF-8,但是一些瑞典字符(åä andö)会被弄乱(只是一个方格框,有一些字母)。我的数据库设置为utf8_general_ci,但我甚至没有连接,所以这并不重要。还是应该使用另一个字符集?这不是一个瑞典网站,它全部是英文,但我想要å Ä和ö无论如何工作。
I use UTF-8 on all my pages, but some Swedish characters (å ä and ö) get messed up (just a square box with some letters in). My database is set to utf8_general_ci, but I'm not even connected so that doesn't really matter. Or should I use another charset? It's not a Swedish site, it's all in English but I want å ä and ö to work anyway.
<!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">
<head>
<title>Untitled document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="default.css" />
</head>
<body>
<p>åäö</p>
</body>
</html>
有什么问题? :/
我使用WAMP。
感谢alot
推荐答案
我知道这是旧的,但我遇到了同样的问题。
I know this is old, but I came across the same problem.
我只需要设置正确的字符集:
I just needed to set the correct charset:
<meta http-equiv="content-type" content="text/html" charset="ISO-8859-1" />
这篇关于瑞典人字符和UTF-8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文