Molyx Board 底层已完全采用 UTF-8 编码内核,可以实现 100% 无差异化的数据共享
原来我写了个Molyx Board 的论坛调用。而现在是 UTF-8编码的数据,调用的中文全部是乱码,请问怎么解决这个问题!!
如果服务器支持iconv或mbstring的话
可以用这两个函数其中之一转换编码
成功,但有的服务器不支持iconv,我想用mbstring,但在文挡中没有查到mbstring函数,只有:mb_substr() returns the portion of str specified by the start and length parameters.
mb_substr() performs multi-byte safe substr() operation based on number of characters. Position is counted from the beginning of str. First character's position is 0. Second character position is 1, and so on.
If encoding is omitted, internal encoding is assumed.
看了下,哪个是字符截取函数,没用。那应该怎么做?谢谢!