开发者

iconv or mbstring?

开发者 https://www.devze.com 2023-01-22 18:19 出处:网络
Which multibyte-handling library should I use : iconv or mbstring ? After some Googli开发者_运维知识库ng I didn\'t find enough arguments to convince me to use one particularly, and I could not get an

Which multibyte-handling library should I use : iconv or mbstring ?

After some Googli开发者_运维知识库ng I didn't find enough arguments to convince me to use one particularly, and I could not get any benchmark (and I'm too lazy do create one :-p).

After all maybe this choice doesn't really matters ?

Thanks for any piece of advice.


I tend to use a combination of both - depending on my needs. I use iconv to convert from one charset to another, but mbstring for simpler operations like mb_strtoupper() and mb_stristr(). But if only one of the libraries is needed I suggest using mbstring purely for it's widespread functionalities and ease of use.

0

精彩评论

暂无评论...
验证码 换一张
取 消