Reply to Re: mail() encoding problems

Your name:

Reply:


Posted by Manuel Lemos on 08/23/07 18:18

Hello,

on 08/23/2007 04:44 AM amygdala said the following:
>>>> The only thing really wrong is that you should not send 8 bit encoded
>>>> messages as many mail gateways do not supported. Instead of 8 bit you
>>>> should use quoted-printable encoding.
>>> Alright, I didn't know this. This makes sense. Cause like I said, even
>>> without me encoding it as utf-8, the problem randomly occured. Perhaps
>>> the
>>> apparent random appearance of strange characters and/or missing of
>>> diactrical characters could be explained due to the fact that subsequent
>>> mail messages can get send through different mail gateways to their
>>> end-destination, just like a tcp packets? Or is that not correct? Not
>>> very
>>> imporant for me to get answered, but it would help me get a better
>>> understanding of things. ;-)
>> No, the diacritical characters appear when transform your text to UTF-8
>> . UTF-8 still uses 8 bits per character. If you read the mail message
>> that is sent you see those characters because whatever console or text
>> display program you are using does not decode UTF-8 and show the correct
>> characters.
>
> But what could be causing my characters to randomly be transformed to UTF-8?
> Do you have any idea? I don't do it anywhere in my application (except for
> the test I stated in my first mail)? I've changed everything back to how it
> was though, and now it still shows
>
> test ëèï
>
> and sometimes
>
> test ëèï
>
> without me changing anything in the programs code? That is weird, isn't it?

If you use utf8_encode, you transform iso-8859-1 text in utf-8.

Since you only have text in one encoding that only uses 8 bit, utf-8 is
not useful for you.


--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация