{"action":"opened","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/1724","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/1724/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/1724/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/1724/events","html_url":"https://github.com/NLog/NLog/issues/1724","id":185673652,"number":1724,"title":"Special characters with webservice target and WebApi","user":{"login":"chwebdude","id":7746357,"avatar_url":"https://avatars.githubusercontent.com/u/7746357?v=3","gravatar_id":"","url":"https://api.github.com/users/chwebdude","html_url":"https://github.com/chwebdude","followers_url":"https://api.github.com/users/chwebdude/followers","following_url":"https://api.github.com/users/chwebdude/following{/other_user}","gists_url":"https://api.github.com/users/chwebdude/gists{/gist_id}","starred_url":"https://api.github.com/users/chwebdude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chwebdude/subscriptions","organizations_url":"https://api.github.com/users/chwebdude/orgs","repos_url":"https://api.github.com/users/chwebdude/repos","events_url":"https://api.github.com/users/chwebdude/events{/privacy}","received_events_url":"https://api.github.com/users/chwebdude/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T13:49:07Z","updated_at":"2016-10-27T13:49:07Z","closed_at":null,"body":"**Question**\r\nI would like to send the logdata to a Asp.Net WebApi Backend. But all special characters are encoded wrong. I tried to change the formatters in WebApi and tried all possible combinations of the `HttpPost` protocol (encoding and BOM) of the `WebService` target. But still the special characters are received as the unknown unicode character �.\r\nWhat can I do?\r\n\r\n**NLog version**: 4.3.9\r\n\r\n**Platform**: .Net 4.6\r\n\r\n**Current NLog config**\r\n```\r\n<target xsi:type='WebService' \r\n   name='ws' \r\n   url='http://localhost:8084/Logs' \r\n   protocol='HttpPost' \r\n   encoding='utf-8' \r\n   includeBOM='false'>\r\n...\r\n</target>\r\n```\r\n\r\n**WebApi Controller:**\r\n```\r\n[HttpPost]\r\npublic async Task<HttpResponseMessage> Post([FromBody] LogEntry logEntry)...\r\n```\r\n\r\n**Example**\r\n***Test Application***\r\n`logger.Debug(\"a b c é k è ï ?\");`\r\n***Result***\r\n![image](https://cloud.githubusercontent.com/assets/7746357/19769716/df34c766-9c5c-11e6-9130-668956b202c6.png)\r\n\r\n"}}
{"actor":{"display_login":"chwebdude"}}