From: Rob V. <rv...@do...> - 2010-02-12 10:05:33
|
Hi Aleksandr You are probably right about that, do you have some test cases I can use to confirm that your fix works as expected? Thanks, Rob Vesse From: Aleksandr A. Zaripov [mailto:za...@tp...] Sent: 12 February 2010 08:00 To: dot...@li... Subject: [dotNetRDF-bugs] Chars escaping bug Hello There are bug with literal nodes, which contain multiline strings (eg. "\r\n"). The code in BaseWriterContext class (lines 391-394) does not works correctly. The string if (value.Contains("\\n")) value = value.Replace("\\n", "\\\\n"); should be if (value.Contains("\"")) value = value.Replace("\"", "\\\""); but I think that the more universal solution is value.Replace("\\", "\\\\"); С уважением, Зарипов Александр za...@tp... |