downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

mailparse_msg_create> <Fonctions Mailparse
[edit] Last updated: Fri, 14 Jun 2013

view this page in

mailparse_determine_best_xfer_encoding

(PECL mailparse >= 0.9.0)

mailparse_determine_best_xfer_encodingDétermine le meilleur encodage pour un fichier

Description

string mailparse_determine_best_xfer_encoding ( resource $fp )

Détermine le meilleur encodage pour le contenu du fichier fourni.

Liste de paramètres

fp

Un pointeur de fichier valide, qui peut être lu.

Valeurs de retour

Retourne un encodage de caractères supporté par le module mbstring.

Exemples

Exemple #1 Exemple avec mailparse_determine_best_xfer_encoding()

<?php

$fp 
fopen('somemail.eml''r');
echo 
'Meilleur encodage : ' mailparse_determine_best_xfer_encoding($fp);

?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

Meilleur encodage : 7bit



add a note add a note User Contributed Notes mailparse_determine_best_xfer_encoding - [2 notes]
up
0
matej dot kovac at gmail dot com
1 year ago
As of mailparse-2.1.5, it can return 7bit, 8bit, base64 and qprint. False on mbstring failure.
up
0
mileskeaton at gmail dot com
4 years ago
As far as I can tell, this only returns one of two strings: 'Quoted-Printable' or '7bit'

 
show source | credits | sitemap | contact | advertising | mirror sites