【问题标题】:Persian word in html page titlehtml页面标题中的波斯语单词
【发布时间】:2013-07-08 19:07:55
【问题描述】:

我对 html 页面标题中的波斯语单词有疑问。

请看这个:

还有这个:

显示不正确。我该如何解决这个问题?

【问题讨论】:

标签: tags title


【解决方案1】:

始终正确设置编码(例如在 html 文档中或通过标题):

使用 UTF-8 的示例:

在 HTML 中:

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
...

在 PHP 中:

<?php
header('Content-Type: text/html; charset=utf-8');


还可以查看从右到左 (RTL):Creating HTML Pages in Arabic, Hebrew and Other Right-to-left Scripts

如果您使用 PHP 来提供页面,请查看以下资源:

【讨论】:

  • 这个解决方案解决了我的问题。非常感谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-12-18
  • 2018-02-01
  • 2018-07-23
  • 1970-01-01
  • 2016-09-08
  • 2020-11-26
相关资源
最近更新 更多