PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Mail_mimeDecode not decoding Windows-1252 correctly?

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail
View previous topic :: View next topic  
Author Message
katowulf



Joined: 19 Jul 2010
Posts: 1

PostPosted: Mon Jul 19, 2010 8:42 pm    Post subject: Mail_mimeDecode not decoding Windows-1252 correctly? Reply with quote

Hi there,

When users copy/paste from MS Word into Gmail or Yahoo Mail, the characters are not converted correctly. Below is a sample of what they come out like:
Code:
 This paragraph, it�s got a quote and an apostrophe�for those who are looking closely, it also has an em-dash. But mosty it�s just here.


The email heading lists the encoding as Windows-1252 and, as far as I can tell, Mail_mimeDecode is running the decoding process correctly. They just... don't become proper UTF-8 equivalents? I'm confused.

Here's my settins'
Code:
    $params['include_bodies'] = true;
    $params['decode_bodies']  = true;
    $params['decode_headers'] = true;
    $decoder = new Mail_mimeDecode($input);
    $mime = $decoder->decode($params);


Anyone encountered this weirdness? Advice? Anything else you want to see?[/quote]
_________________
http://www.zenovations.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Mail All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement