What PHP function to use to clean up PGP encoded text under Outlook Express?

From: Date: Wed, 18 Jul 2001 21:27:55 +0000
Subject: What PHP function to use to clean up PGP encoded text under Outlook Express?
Groups: php.general 
Request: Send a blank email to php-general+get-58557@lists.php.net to get a copy of this message
I've got PHP a routine that encodes some sensitive information using PGP and then emails this from my linux server to a few separate people.... People using Outlook (full version) see a perfectly formatted message when it gets decoded. People using Outlook Express see the message with the \n not being replaced as CR/LF.... nl2br() is going to HTML-ize the string.... which isnt what I want... it's got to be changed to the windows-required newline char pattern ... So which one is right? str_replace("\n","\r\n",$input) or str_replace("\n","\n\r",$input)

« previous php.general (#58557) next »