整齐更换有着奇怪的性格
我正在使用 Tidy(带有 PHP5),并启用 UTF8 输入、输出和字符编码。当我清理其中包含
的字符串时,它会用一个奇数字符替换它。我尝试过弄乱整洁的配置,但我尝试的任何操作似乎都不起作用。
Tidy 之前:
This is a test. Why does this not work?
Tidy 之后:
This is a test. ▒Why does this not work?
我不知道该字符是什么,但我认为它与 utf8 中的实体编码有关。关于如何让
保持整洁,有什么想法吗?
I am using Tidy (with PHP5) with UTF8 input, output, and char encoding enabled. When I clean a string with an
in it, it is replacing it with an odd character. I've tried messing with the tidy config but nothing I try seems to work.
Before Tidy:
This is a test. Why does this not work?
After Tidy:
This is a test. ▒Why does this not work?
I don't know what the character is, but I assume it has something to do with the encoding of the enteties in utf8. Any ideas as to how I can get tidy to just leave the
alone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过 preserve-entities 配置选项?
Have you tried the preserve-entities config option?