Quantcast
Channel: Why Notepad++ shows Carriage return + Line feed for both \r and \n - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Why Notepad++ shows Carriage return + Line feed for both \r and \n

$
0
0

In C# define 4 variable as below:

string s1 = "\r";string s2 = "\n";string CarriageReturn = (Convert.ToChar(13)).ToString();string LineFeed = (Convert.ToChar(10)).ToString();

Then by watching copy their value in Notepad++ and click on "Show all characters". Interestingly you can see there is no difference between \r and \n and for both of them, it shows CR LF.Is it a bug or something else? How can we explain this?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images