PHP Function Iconv_Get_Encoding
php function iconv_get_encoding -
In order to make the PHP more efficient, flexible, smoother and secured many inbuilt functions have been created. One of the major inbuilt functions is output buffering which helps in storing the data that has been directed to the browser after the execution of the PHP script. This improvises the process of page rendering and gives better results as compared to the direct transmission from the engine itself.
Another inbuilt PHP function is iconv_get_encoding which retrieves the internal configuration variables of the iconv extension. It takes three parameters namely from_encoding, to_encoding and string. It returns the converted string if successful or else it will return FALSE.
Iconv is a library which provides an interface for character set conversion in PHP. This module contains various utility functions which can be used for multilingual scripting. Its performance depends on the iconv implementation that is used in your system. You may have to get the >> GNU libiconv installed for consistent and reliable results. If you are using a recent POSIX compliant system then the standard C libraries provided in them already provide iconv facility. If not then you should install it with the help of configure line: --with-iconv[=DIR]. It supports all standard encodings including Unicode and ISO-8859-1. Other encodings can also be supported but may require additional configuration options. Iconv can also support transliteration. If the string //TRANSLIT is appended to to_encoding then it will try to approximate a character that cannot be represented in to_encoding through one or more similarly looking characters. Otherwise a E_NOTICE will be thrown.