{"action":"created","issue":{"url":"https://api.github.com/repos/libragnar/ragnar/issues/107","labels_url":"https://api.github.com/repos/libragnar/ragnar/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/libragnar/ragnar/issues/107/comments","events_url":"https://api.github.com/repos/libragnar/ragnar/issues/107/events","html_url":"https://github.com/libragnar/ragnar/issues/107","id":104593713,"number":107,"title":"std::strings are not correctly converted to CLI strings","user":{"login":"JJWR","id":10193486,"avatar_url":"https://avatars.githubusercontent.com/u/10193486?v=3","gravatar_id":"","url":"https://api.github.com/users/JJWR","html_url":"https://github.com/JJWR","followers_url":"https://api.github.com/users/JJWR/followers","following_url":"https://api.github.com/users/JJWR/following{/other_user}","gists_url":"https://api.github.com/users/JJWR/gists{/gist_id}","starred_url":"https://api.github.com/users/JJWR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJWR/subscriptions","organizations_url":"https://api.github.com/users/JJWR/orgs","repos_url":"https://api.github.com/users/JJWR/repos","events_url":"https://api.github.com/users/JJWR/events{/privacy}","received_events_url":"https://api.github.com/users/JJWR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-02T23:49:27Z","updated_at":"2015-09-03T12:30:44Z","closed_at":null,"body":"Hello, when loading a torrent file with Japanese or Korean, etc. characters the file names and other strings (like torrent comments) are not displayed correctly.\r\n\r\nIn most of the places you convert the std::string to CLI string like this\r\n```\r\nreturn gcnew System::String(this->_info->name().c_str());\r\n```\r\nHowever the created CLI string is missing the UTF8 encoding that libtorrent uses so the text is wrong for non standard characters.\r\n\r\nI changed it to:\r\n```\r\nSystem::Text::UTF8Encoding ^encoding = gcnew System::Text::UTF8Encoding();\r\nreturn gcnew System::String(this->_info->name().c_str(), 0, this->_info->name().size(), encoding);\r\n```\r\nAnd it seems to work, but I am not sure if this is the best way.\r\n\r\nIt should be changed in many places."},"comment":{"url":"https://api.github.com/repos/libragnar/ragnar/issues/comments/137421786","html_url":"https://github.com/libragnar/ragnar/issues/107#issuecomment-137421786","issue_url":"https://api.github.com/repos/libragnar/ragnar/issues/107","id":137421786,"user":{"login":"JJWR","id":10193486,"avatar_url":"https://avatars.githubusercontent.com/u/10193486?v=3","gravatar_id":"","url":"https://api.github.com/users/JJWR","html_url":"https://github.com/JJWR","followers_url":"https://api.github.com/users/JJWR/followers","following_url":"https://api.github.com/users/JJWR/following{/other_user}","gists_url":"https://api.github.com/users/JJWR/gists{/gist_id}","starred_url":"https://api.github.com/users/JJWR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JJWR/subscriptions","organizations_url":"https://api.github.com/users/JJWR/orgs","repos_url":"https://api.github.com/users/JJWR/repos","events_url":"https://api.github.com/users/JJWR/events{/privacy}","received_events_url":"https://api.github.com/users/JJWR/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T12:30:44Z","updated_at":"2015-09-03T12:30:44Z","body":"Thanks!\r\n\r\nI am trying to build your new wrapper, but it seems really hard to setup all the libraries to build it without a guide. It would be really helpful if you can publish a Visual Studio solution with everything included like you did for ragnar or some kind of guide.\r\n\r\nThanks!\r\n"}}