Home > Backend Development > PHP Tutorial > PHP character encoding related function iconv

PHP character encoding related function iconv

伊谢尔伦
Release: 2016-11-21 18:00:03
Original
1454 people have browsed it

This module contains the interface for the iconv character set conversion function. Using this module, you can convert a string expressed in a local character set to another character set, such as the Unicode character set. Supported character sets are based on the implementation of iconv on your system. Note that on some systems the iconv function may not work as you expect. In this case, it would be a good idea to install the libiconv library. It will ultimately produce more consistent results.

Since PHP 5.0.0, it is equipped with this extension with various practical functions to help you write multi-language scripts.

This extension is activated by default, but it can be disabled at compile time with the --without-iconv option.

Option command --with-iconv-dir is used to specify the path of iconv in the system when compiling PHP, otherwise the default path will be scanned.

Related functions:

iconv_get_encoding — Get the internal configuration variables of the iconv extension

iconv_mime_decode_headers — Decode multiple MIME header fields at once

iconv_mime_decode — Decodes a MIME header field

iconv_mime_encode — Composes a MIME header field

iconv_set_encoding — Set the current settings for character encoding conversion

iconv_strlen — Returns the character count of 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 — Intercept part of the string

iconv — Convert the string according to the required character encoding

ob_iconv_handler — Use the output buffer handler to convert the character encoding


Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template