如何使用 PHP 将阿拉伯文本转换为十六进制
请注意,我需要将阿拉伯文本与十六进制相互转换,如下例所示使用 PHP
мыба
06450631062D06280627
问候,
Eco
Kindly I need to convert the Arabic text to and from Hexadecimal like the following example Using PHP
مرحبا
06450631062D06280627
Regards,
Eco
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(3)
~没有更多了~
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如果您只需要开始生成 HTML 文档中写入的阿拉伯文本,我认为最简单的方法是将序列转换为字符引用,例如将 0645 转换为
م
。这可以按如下方式完成:If you just need to have the Arabic text written in the HTML document begin generated, I think the simplest way is to convert the sequence to character references, turning e.g. 0645 to
م
. This could be done as follows: