标签: php encoding utf-8 ascii
我遇到编码类型的问题。有我的代码,它在echo的返回ASCII中,但我需要将其设置为UTF-8。你有什么想法吗?
mb_internal_encoding("UTF-8"); $a = "some string"; echo mb_detect_encoding($a); mb_convert_encoding($a, "UTF-8", "ASCII"); echo mb_detect_encoding($a);