PHP多字节字符串unicode问题 [英] PHP multibyte strings unicode problem

查看:94
本文介绍了PHP多字节字符串unicode问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用php的mb函数逐个字母(希腊字母)分割字符串。我也有一个javascript函数,我想得到这些字母的unicode(希腊字母= 945等),但在每个字母中它得到unicode数字37.

我试过解决这个问题函数如mb_convert_encoding但我没有运气。

任何想法都会有所帮助。

提前谢谢

I have split a string letter by letter (greek letters) using the mb functions of php. I have a javascript function too which i want to get the unicode of these letters (greek alpha=945 etc), but in every letter it gets as unicode the number 37.
I have tried solving this with functions like mb_convert_encoding but i had no luck.
Any ideas will be helpful.
Thanks in advance

推荐答案

这篇关于PHP多字节字符串unicode问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆