Reply to Re: ISO encoding of subject in mail?

Your name:

Reply:


Posted by L0t3k on 03/30/05 08:06

Kim,
i vaguely recall some new (aka 5.04) functions added to the mbstring
extension to handle this.

BTW, are you _the_ Kim Madsen of TKBMMemtable fame ?

"Kim Madsen" <km@comx.dk> wrote in message
news:15653CE98281AD4FBD7F70BCEE3666E521F071@comxexch01.comx.local...
Hi

I΄d like to encode the subject in mails generated and sent by PHP, so Danish
letters like ζ,ψ and ε can be used too... like this:

Subject: Problemer med =?ISO-8859-1?Q?f=E6llesdrev_m=2Em=2E?=

I can΄t seem to find a proper function for this? I΄ve tried with encode(),
htmlentities() and htmlspecialchars():

$subject = htmlentities($subject, ENT_QUOTES, "ISO-8859-1");

which gives:

Subject: ADVARSEL: F&aring; IP adresser tilbage

And it΄s not converted by the mailclients.

I΄d like to solve this since the mailserver at work complaints if the
subject is not encoded:

X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char E5 hex) in message
header 'Subject': Subject: ADVARSEL: F\345 IP adresser ti...

Any tips/ideas?

--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper

[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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация