E-mail attachment with scrambled text.

Simen Kjærås simen.kjaras at gmail.com
Thu Jun 28 12:36:11 UTC 2018


On Thursday, 28 June 2018 at 11:46:31 UTC, vino.B wrote:
> Output in Linux
> ************Server Details******************
> Server Name : 1XXXX     IP: 1XXXXXX
> Server Name : 2XXXX     IP: 2XXXXXX
> Server Name : 3XXXX     IP: 3XXXXXX
> ********************************************
>
> The output in Windows(Email attachment) all are in single line
>
> ************Server Details******************Server Name : 1XXXX
>   IP: 1XXXXXXServer Name : 2XXXX     IP: 2XXXXXX Server Name : 
> 3XXXX     IP: 3XXXXXX
> ********************************************

Looks to be an issue with newlines. In linux, a newline is simply 
\n. In Windows it's \r\n, and some Windows programs get confused 
when they just see a \n, notably notepad. Notepad++ and basically 
any other editor will handle Unix newlines correctly.

--
   Simen


More information about the Digitalmars-d-learn mailing list