What is the preferable character encoding order to be passed as second argument of mb_detect_encoding( )
.
I am asking this because some character encoding overlap others like ASCII is returned for UTF (in some cases) and EUC-CN for gb2312, and anyone of EUC-CN,EUC-JP,EUC-KR,EUC-TW whichever appears earlier in the sequence passed to the function is returned for simplified Chinese EUC-CN compatible string.
Here are some that i collected, but i want to make the list as comprehensive as possible.
EUC-CN
EUC-JP
EUC-KR
EUC-TW
SJIS
ASCII
JIS
UTF-8
EUC-JP
EUC-CN
EUC-KR
EUC-TW
SJIS
Kindly help me to correct the order and make this list as large as possible.
Edit 1:
All I want to do using this is to convert any string to utf8.
Edit 2:
Considering the below suggestions, I want to minimize the possibilities of text getting wasted in encoding conversion, because the converted text is the only thing my site relies on. So, even if the solution i am using is not the perfect one. Would you please demonstrate the most reliable solution?