Is it possible like in the mcrypt library with function mcrypt_list_algorithms(). Is there a iconv_list_encodings like function ?
Is it possible like in the mcrypt library with function mcrypt_list_algorithms() . Is there
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In PHP the
iconvextension does not have a function to list all available encodings.The encodings which are available depends on which library
iconvinternally uses. For example there is libiconv. That website also contains a list of charsets you can use.You can also connect to your server via SSH and execute the following command:
This will give you the available list on that system if PHP is compiled against the same library as the command-line utility.
If you’re uncertain if a specific charset is available, you need to check for errors by probing with
iconv.List of iconv encoding and aliases (Feb 2013; gist):