I'm keeping several texts in an App_GlobalResources.resx
file.
The texts have to be multi-line and I need to have them contain line feeds. However, when I read the contents, all line feeds are gone (\r\n
is printed, not as CRLF 10 13
control character).
I know that I could work around this by re-replacing \r\n
(or anything else for that matter) back to CRLF when I read the contents, but I wondered why these clearly text-targeted resx files ignore control characters - and CRLF is kind of important - and if anybody knows if there's a setting or something that would enable this to work naturally.
\t
tabs. I had to actually go into visual studio's settings for tabs in xml files and turn off the "tabs as spaces" option (where it replaces tab characters with a number of spaces instead) so that I could get a literal tab character into my string. – Talithatalk