我有一个名为data.dat
的文件,它将信息存储为纯文本。这是一个示例:
I hear people giving financial advice all the time. Most of them aren't rich.
在网页上显示如下:
I�hear�people giving financial advice all the time.�Most�of them�aren't�rich.
我在头部添加了utf-8字符集元标记:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
在Notepad ++中,我看不到任何特殊字符,只能看到空格。我在MSWord打开它,但那些仍然是空格。在编码或其他什么地方,他们的东西是错的?如果我需要提供更多信息,请告诉我。感谢。
编辑经过进一步检查后,我发现复制粘贴文本的编码是ANSI。有什么理由可能会发生吗?
答案 0 :(得分:-2)
请检查
之间是否有空格<textarea></textarea>
e.g。像
<textarea> </textarea>