To cope with a ‘weird’ file from a customer I need to replace carriage return characters (x’OD’) with line feeds (x’0A’). I tried this:set transcodedString = transcodedString.replace("\r", "\n"); but all that does is take the n as a literal so I end up with lots of n characters instead of line feeds. What syntax should I use?