HTML 中的阿拉伯文本和链接出现乱码
我正在尝试创建带有阿拉伯文本的网页。我终于可以在我的 Mac 上使用这些页面了。当我从 Windows 7 PC 检查页面时,发生了这种情况:
图片 1 -
(来源:greaturl.com)
文字全部乱码。但在此之前,它向我的链接添加了一个代码,例如 %AB%20%XY,我查找了该代码并代表 RTL 方向。
但在我的 Mac 上查看时,效果还不错。但我在阅读大量有关编码的信息时已经彻底困惑了,现在我不确定哪种方式是正确的
图像 2 -
(来源:greaturl.com)
页面名称采用阿拉伯语,在托管文件管理器上显示良好,但随后它们转向这些乱码文件名。
我假设托管服务器执行了此操作,或者服务器以某种方式读取文件而不是 utf-8
请帮忙,我已阅读并完全困惑。 谢谢!
I am trying to create webpages with Arabic text. I got the pages to finally work on my Mac. When I checked the pages from my Windows 7 PC, this happened:
Image 1 -
(source: greaturl.com)
The text got all garbled. But before that, it was adding a code to my links like %AB%20%XY which I looked up and represents the RTL direction.
But when viewed on my Mac it was fine. But I have thoroughly confused myself reading reams of info on encoding and now am not sure which way is up
Image 2 -
(source: greaturl.com)
The page names were in Arabic and were showing up fine on hosting file manager but then they turned to these garbled file names.
I'm assuming that the hosting server did this or that somehow the server read the file as something other than utf-8
Please help, I have read up and am utterly confused.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅添加这两行
链接
Add this two lines only
Link