【问题标题】:How to translate UTF8 file into html-like notation如何将 UTF8 文件转换为类似 html 的符号
【发布时间】:2011-09-22 15:49:38
【问题描述】:

如何将法语(任何语言)的 Unicode 文件翻译成 html 特殊编码的相关文件。比如带重音的字母“e”应该翻译成é等等……

é -> é

我需要准备一个没有像“é”这样的 UTF8 字母的本地化文件,只有它应该包含像 é 这样的其他格式

【问题讨论】:

标签: html unicode utf-8 localization translate


【解决方案1】:

当您同时使用 --html--verbose 选项时,uniquote utility 将为您执行此操作。

$ echo niño difícil | uniquote --html --verbose
niño difícil

【讨论】:

    【解决方案2】:

    php htmlentities 看到它 php manual

    【讨论】:

      猜你喜欢
      • 2012-01-04
      • 1970-01-01
      • 1970-01-01
      • 2020-12-04
      • 1970-01-01
      • 2012-02-01
      • 1970-01-01
      • 2013-02-01
      • 2020-04-23
      相关资源
      最近更新 更多