Php character encoding function iconv

Source: Internet
Author: User
PHP extended character encoding function-iconv This module contains the iconv Character Set conversion function interface. With this module, you can convert a string expressed by a local character set to another character set, for example, a Unicode character set. The supported character set is based on the iconv implementation on your system. Note that the iconv function may not work as expected on some systems. In this case, installing the libiconv library would be a good idea. It will eventually produce more consistent results.

Since PHP 5.0.0, it has been equipped with extensions with a variety of practical functions to help you write multilingual scripts.

This extension is activated by default, but it can be disabled by using the -- without-iconv option during compilation.

Option command -- with-iconv-dir is used to specify the iconv path in the system during PHP compilation; otherwise, the default path will be scanned.

Related functions:

Iconv_get_encoding-get the internal configuration variable of the iconv extension

Iconv_mime_decode_headers-decode multiple MIME header fields at a time

Iconv_mime_decode-Decodes a MIME header field

Iconv_mime_encode-Composes a MIME header field

Iconv_set_encoding-set the current setting for character encoding conversion

Iconv_strlen-returns the number of characters in a string.

Iconv_strpos-Finds position of first occurrence of a needle within a haystack

Iconv_strrpos-Finds the last occurrence of a needle within a haystack

Iconv_substr-part of the truncated string

Iconv-string conversion based on the required character encoding

Ob_iconv_handler-Convert character encoding with the output buffer handler

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.