{"action":"created","issue":{"url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1687","repository_url":"https://api.github.com/repos/akkadotnet/akka.net","labels_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1687/labels{/name}","comments_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1687/comments","events_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1687/events","html_url":"https://github.com/akkadotnet/akka.net/issues/1687","id":131221588,"number":1687,"title":"Akka.NET's HOCON does not treat triple-quotes correctly.","user":{"login":"BrainSlugs83","id":5217366,"avatar_url":"https://avatars.githubusercontent.com/u/5217366?v=3","gravatar_id":"","url":"https://api.github.com/users/BrainSlugs83","html_url":"https://github.com/BrainSlugs83","followers_url":"https://api.github.com/users/BrainSlugs83/followers","following_url":"https://api.github.com/users/BrainSlugs83/following{/other_user}","gists_url":"https://api.github.com/users/BrainSlugs83/gists{/gist_id}","starred_url":"https://api.github.com/users/BrainSlugs83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrainSlugs83/subscriptions","organizations_url":"https://api.github.com/users/BrainSlugs83/orgs","repos_url":"https://api.github.com/users/BrainSlugs83/repos","events_url":"https://api.github.com/users/BrainSlugs83/events{/privacy}","received_events_url":"https://api.github.com/users/BrainSlugs83/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akkadotnet/akka.net/labels/configuration","name":"configuration","color":"fbca04"},{"url":"https://api.github.com/repos/akkadotnet/akka.net/labels/confirmed%20bug","name":"confirmed bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"Aaronontheweb","id":326939,"avatar_url":"https://avatars.githubusercontent.com/u/326939?v=3","gravatar_id":"","url":"https://api.github.com/users/Aaronontheweb","html_url":"https://github.com/Aaronontheweb","followers_url":"https://api.github.com/users/Aaronontheweb/followers","following_url":"https://api.github.com/users/Aaronontheweb/following{/other_user}","gists_url":"https://api.github.com/users/Aaronontheweb/gists{/gist_id}","starred_url":"https://api.github.com/users/Aaronontheweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aaronontheweb/subscriptions","organizations_url":"https://api.github.com/users/Aaronontheweb/orgs","repos_url":"https://api.github.com/users/Aaronontheweb/repos","events_url":"https://api.github.com/users/Aaronontheweb/events{/privacy}","received_events_url":"https://api.github.com/users/Aaronontheweb/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2016-02-04T02:37:56Z","updated_at":"2016-04-08T11:51:10Z","closed_at":null,"body":"From the HOCON [Readme](https://github.com/typesafehub/config/blob/master/HOCON.md#multi-line-strings):\r\n> If the three-character sequence \"\"\" appears, then all Unicode characters until a closing \"\"\" sequence are used unmodified to create a string value. Newlines and whitespace receive no special treatment. Unlike Scala, and unlike JSON quoted strings, Unicode escapes are not interpreted in triple-quoted strings.\r\n\r\nThe following code demonstrates the issue:\r\n```\r\nvar str = @\"blah\\de-dah\";\r\nConfigurationFactory.ParseString\r\n(\r\n    $\"SomeValue = \\\"\\\"\\\"{str}\\\"\\\"\\\"\"\r\n);\r\n```\r\nThe actual contents of that string are evaluated to be:\r\n> SomeValue = \"\"\"blah\\de-dah\"\"\"\r\n\r\nThe runtime error I receive clearly shows that the HOCON parser is trying to read \"\\d\" as an escape sequence instead of two literal unicode characters:\r\n> Unhandled Exception: System.NotSupportedException: Unknown escape code: d\r\n>    at Akka.Configuration.Hocon.HoconTokenizer.PullEscapeSequence()\r\n>    at Akka.Configuration.Hocon.HoconTokenizer.PullTripleQuotedText()\r\n>    at Akka.Configuration.Hocon.HoconTokenizer.PullValue()\r\n>    at Akka.Configuration.Hocon.Parser.ParseValue(HoconValue owner, String currentPath)\r\n>    at Akka.Configuration.Hocon.Parser.ParseKeyContent(HoconValue value, String currentPath)\r\n>    at Akka.Configuration.Hocon.Parser.ParseObject(HoconValue owner, Boolean root, String currentPath)\r\n>    at Akka.Configuration.Hocon.Parser.ParseText(String text, Func`2 includeCallback)\r\n>    at Akka.Configuration.ConfigurationFactory.ParseString(String hocon)"},"comment":{"url":"https://api.github.com/repos/akkadotnet/akka.net/issues/comments/207398482","html_url":"https://github.com/akkadotnet/akka.net/issues/1687#issuecomment-207398482","issue_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1687","id":207398482,"user":{"login":"rogeralsing","id":647031,"avatar_url":"https://avatars.githubusercontent.com/u/647031?v=3","gravatar_id":"","url":"https://api.github.com/users/rogeralsing","html_url":"https://github.com/rogeralsing","followers_url":"https://api.github.com/users/rogeralsing/followers","following_url":"https://api.github.com/users/rogeralsing/following{/other_user}","gists_url":"https://api.github.com/users/rogeralsing/gists{/gist_id}","starred_url":"https://api.github.com/users/rogeralsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogeralsing/subscriptions","organizations_url":"https://api.github.com/users/rogeralsing/orgs","repos_url":"https://api.github.com/users/rogeralsing/repos","events_url":"https://api.github.com/users/rogeralsing/events{/privacy}","received_events_url":"https://api.github.com/users/rogeralsing/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T11:51:10Z","updated_at":"2016-04-08T11:51:10Z","body":"https://github.com/akkadotnet/akka.net/blob/dev/src/core/Akka.Tests/Configuration/HoconTests.cs#L392\n\nThere is a test verifying that tripplequotes can be parsed.\nWe should add a case for the failing string too"}}