this function lists the most common names under which encodings are named,
If the one you are looking for is not in the list but does work it may be known as an alias of one of the returned encoding names
mb_encoding_aliases returns the aliases of the encoding ,
unfortunately there is no reverse way to do this (eg. no function will return 'CP936' for 'GBK')
you could list all encoding names and their known aliases by doing something like
<?php
print_r(
array_unique(
array_merge(
$enc = mb_list_encodings(),
call_user_func_array(
'array_merge',
array_map(
"mb_encoding_aliases",
$enc
)
)
)
)
);
?>