How bad is mb_internal_encoding(“UTF-8”);?

别说谁变了你拦得住时间么 提交于 2019-12-11 06:57:03

问题


After answering Zend_Cache: After loading cached data, character encoding seems messed up

I use it to change the PHP's internal encoding , its originally ISO-8859-1,

so I need to change the encoding of every non English input value, but using it I force PHP to convert every value to UTF-8, as you might see in the question linked above.

I am Caching arabic text in files using Zend_cache, I wasn't be able to do it without that function.

I need to know: How bad is to use this function mb_internal_encoding("UTF-8");?

I had adopt to use this function in every project I opt in , all of them are using non-english characters

来源:https://stackoverflow.com/questions/4045060/how-bad-is-mb-internal-encodingutf-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!