{"action":"created","issue":{"url":"https://api.github.com/repos/swiftyspiffy/TwitchLib/issues/10","repository_url":"https://api.github.com/repos/swiftyspiffy/TwitchLib","labels_url":"https://api.github.com/repos/swiftyspiffy/TwitchLib/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/swiftyspiffy/TwitchLib/issues/10/comments","events_url":"https://api.github.com/repos/swiftyspiffy/TwitchLib/issues/10/events","html_url":"https://github.com/swiftyspiffy/TwitchLib/issues/10","id":161063277,"number":10,"title":"Russian text issuses","user":{"login":"igor523","id":19632145,"avatar_url":"https://avatars.githubusercontent.com/u/19632145?v=3","gravatar_id":"","url":"https://api.github.com/users/igor523","html_url":"https://github.com/igor523","followers_url":"https://api.github.com/users/igor523/followers","following_url":"https://api.github.com/users/igor523/following{/other_user}","gists_url":"https://api.github.com/users/igor523/gists{/gist_id}","starred_url":"https://api.github.com/users/igor523/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igor523/subscriptions","organizations_url":"https://api.github.com/users/igor523/orgs","repos_url":"https://api.github.com/users/igor523/repos","events_url":"https://api.github.com/users/igor523/events{/privacy}","received_events_url":"https://api.github.com/users/igor523/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-06-19T08:44:17Z","updated_at":"2016-06-19T11:28:02Z","closed_at":null,"body":"Hello!\r\n\r\nLibrary (version 1.0.5 from NuGet) doesn't seems to work with Russian text - all of the Russian characters in received messages becomes unreadable, and in sent messages they became not visible. For example, this code:\r\n\r\n`chatWrapper.SendMessage(\"Тестовое сообщение! Test message!\");`\r\n\r\nsends \"! Test message\" in chat instead of given string.\r\n\r\nAnd any received Russian character becomes something like this: \r\n\r\n`\"РўРµСЃС‚РѕРІРѕРµ СЃРѕРѕР±С‰РµРЅРёРµ! Test message!\"`\r\n\r\nMaybe, it's something related to IRC part of your lib? Twitch server expects UTF8 without BOM, but perhaps gets something else.\r\nI think, that some other languages could be affected too.\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/swiftyspiffy/TwitchLib/issues/comments/226992283","html_url":"https://github.com/swiftyspiffy/TwitchLib/issues/10#issuecomment-226992283","issue_url":"https://api.github.com/repos/swiftyspiffy/TwitchLib/issues/10","id":226992283,"user":{"login":"igor523","id":19632145,"avatar_url":"https://avatars.githubusercontent.com/u/19632145?v=3","gravatar_id":"","url":"https://api.github.com/users/igor523","html_url":"https://github.com/igor523","followers_url":"https://api.github.com/users/igor523/followers","following_url":"https://api.github.com/users/igor523/following{/other_user}","gists_url":"https://api.github.com/users/igor523/gists{/gist_id}","starred_url":"https://api.github.com/users/igor523/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igor523/subscriptions","organizations_url":"https://api.github.com/users/igor523/orgs","repos_url":"https://api.github.com/users/igor523/repos","events_url":"https://api.github.com/users/igor523/events{/privacy}","received_events_url":"https://api.github.com/users/igor523/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T11:28:02Z","updated_at":"2016-06-19T11:28:02Z","body":"Found it! Works for me\r\n\r\n```C#\r\npublic void SendMessage(string message)\r\n        {\r\n            string content = message;\r\n            content = content.Replace(\"\\n\", \" \");\r\n            content = String.Format(\":{0}!{0}@{0}.tmi.twitch.tv PRIVMSG #{1} :\", parameters.TwitchUsername, targetChannel.ToLower());\r\n            content += message;\r\n            var enc = Encoding.UTF8;\r\n            byte[] orig = enc.GetBytes(content);\r\n            content = Encoding.Default.GetString(orig);\r\n            chat.SendRaw(content);\r\n        }\r\n```"}}
{"actor":{"display_login":"igor523"}}