Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.mb check encoding
.mb convert case
.mb convert encoding
.mb convert kana
.mb convert variables
.mb decode mimeheader
.mb decode numericentity
.mb detect encoding
.mb detect order
.mb encode mimeheader
.mb encode numericentity
.mb ereg match
.mb ereg replace
.mb ereg search getpos
.mb ereg search getregs
.mb ereg search init
.mb ereg search pos
.mb ereg search regs
.mb ereg search setpos
.mb ereg search
.mb ereg
.mb eregi replace
.mb eregi
.mb get info
.mb http input
.mb http output
.mb internal encoding
.mb language
.mb list encodings alias names
.mb list encodings
.mb list mime names
.mb output handler
.mb parse str
.mb preferred mime name
.mb regex encoding
.mb regex set options
.mb send mail
.mb split
.mb strcut
.mb strimwidth
.mb stripos
.mb stristr
.mb strlen
.mb strpos
.mb strrchr
.mb strrichr
.mb strripos
.mb strrpos
.mb strstr
.mb strtolower
.mb strtoupper
.mb strwidth
.mb substitute character
.mb substr count
.mb substr
 
   

  mb_convert_encoding  


mb_convert_encoding

(PHP 4 >= 4.0.6, PHP 5)

mb_convert_encoding -- Conversion d'encodage

Description

string mb_convert_encoding ( string str, string to_encoding [, mixed from_encoding] )

mb_convert_encoding() convertit la chaîne str depuis l'encodage from_encoding vers l'encodage to_encoding.

str : chaîne de caractères à convertir.

from_encoding est l'encodage de la chaîne str à l'origine. Il sera détecté parmi plusieurs encodages fournis sous forme d'un tableau, ou d'une liste d'encodages séparés par des virgules.

Exemple 1. Exemple avec mb_convert_encoding()

<?php
/* Convertit l'encodage interne vers SJIS */
$str = mb_convert_encoding($str, "SJIS");
/* Convertit EUC-JP en UTF-7 */
$str = mb_convert_encoding($str, "UTF-7", "EUC-JP");
/* Détecte automatiquement un encodage entre JIS, eucjp-win ou sjis-win,
   Puis convertit en UCS-2LE */
$str = mb_convert_encoding($str, "UCS-2LE", "JIS, eucjp-win, sjis-win");
/* "auto" signifie "ASCII,JIS,UTF-8,EUC-JP,SJIS" */
$str = mb_convert_encoding($str, "EUC-JP", "auto");
?>

Voir aussi mb_detect_order().


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.