Warning: file_put_contents(): Only -1 of 57 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
iconv_mime_encode iconv_strlen iconv PHP Manual iconv_set_encoding (PHP 4 >= 4.0.5, 5) — Set current setting for character encoding conversion Description bool ( string $type , $charset ) Chan...
Forum und email

iconv_set_encoding

(PHP 4 >= 4.0.5, PHP 5)

iconv_set_encoding — Set current setting for character encoding conversion

Description

bool iconv_set_encoding ( string $type , string $charset )

Changes the value of the internal configuration variable specified by type to charset .

Parameters

type

The value of type can be any one of those:

  • input_encoding
  • output_encoding
  • internal_encoding

charset

The character set.

Return Values

Επιστρέφει TRUE σε επιτυχία ή FALSE σε αποτυχία.

Παραδείγματα

Example#1 iconv_set_encoding() example

<?php
iconv_set_encoding
("internal_encoding""UTF-8");
iconv_set_encoding("output_encoding""ISO-8859-1");
?>

Δείτε επίσης