{"action":"created","issue":{"url":"https://api.github.com/repos/gabime/spdlog/issues/762","repository_url":"https://api.github.com/repos/gabime/spdlog","labels_url":"https://api.github.com/repos/gabime/spdlog/issues/762/labels{/name}","comments_url":"https://api.github.com/repos/gabime/spdlog/issues/762/comments","events_url":"https://api.github.com/repos/gabime/spdlog/issues/762/events","html_url":"https://github.com/gabime/spdlog/issues/762","id":343319387,"node_id":"MDU6SXNzdWUzNDMzMTkzODc=","number":762,"title":"UTF-8 output on Windows?","user":{"login":"YukinoHayakawa","id":968003,"node_id":"MDQ6VXNlcjk2ODAwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/968003?v=4","gravatar_id":"","url":"https://api.github.com/users/YukinoHayakawa","html_url":"https://github.com/YukinoHayakawa","followers_url":"https://api.github.com/users/YukinoHayakawa/followers","following_url":"https://api.github.com/users/YukinoHayakawa/following{/other_user}","gists_url":"https://api.github.com/users/YukinoHayakawa/gists{/gist_id}","starred_url":"https://api.github.com/users/YukinoHayakawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YukinoHayakawa/subscriptions","organizations_url":"https://api.github.com/users/YukinoHayakawa/orgs","repos_url":"https://api.github.com/users/YukinoHayakawa/repos","events_url":"https://api.github.com/users/YukinoHayakawa/events{/privacy}","received_events_url":"https://api.github.com/users/YukinoHayakawa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"gabime","id":6052198,"node_id":"MDQ6VXNlcjYwNTIxOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/6052198?v=4","gravatar_id":"","url":"https://api.github.com/users/gabime","html_url":"https://github.com/gabime","followers_url":"https://api.github.com/users/gabime/followers","following_url":"https://api.github.com/users/gabime/following{/other_user}","gists_url":"https://api.github.com/users/gabime/gists{/gist_id}","starred_url":"https://api.github.com/users/gabime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabime/subscriptions","organizations_url":"https://api.github.com/users/gabime/orgs","repos_url":"https://api.github.com/users/gabime/repos","events_url":"https://api.github.com/users/gabime/events{/privacy}","received_events_url":"https://api.github.com/users/gabime/received_events","type":"User","site_admin":false},"assignees":[{"login":"gabime","id":6052198,"node_id":"MDQ6VXNlcjYwNTIxOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/6052198?v=4","gravatar_id":"","url":"https://api.github.com/users/gabime","html_url":"https://github.com/gabime","followers_url":"https://api.github.com/users/gabime/followers","following_url":"https://api.github.com/users/gabime/following{/other_user}","gists_url":"https://api.github.com/users/gabime/gists{/gist_id}","starred_url":"https://api.github.com/users/gabime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabime/subscriptions","organizations_url":"https://api.github.com/users/gabime/orgs","repos_url":"https://api.github.com/users/gabime/repos","events_url":"https://api.github.com/users/gabime/events{/privacy}","received_events_url":"https://api.github.com/users/gabime/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-07-21T11:15:49Z","updated_at":"2018-07-22T07:37:38Z","closed_at":null,"author_association":"NONE","body":"wincolor_sink uses WriteConsoleA to write output, which AFAIK can't handle UTF-8. Should we convert the buffer to UTF-16 and use WriteConsoleW instead?"},"comment":{"url":"https://api.github.com/repos/gabime/spdlog/issues/comments/406847444","html_url":"https://github.com/gabime/spdlog/issues/762#issuecomment-406847444","issue_url":"https://api.github.com/repos/gabime/spdlog/issues/762","id":406847444,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjg0NzQ0NA==","user":{"login":"gabime","id":6052198,"node_id":"MDQ6VXNlcjYwNTIxOTg=","avatar_url":"https://avatars3.githubusercontent.com/u/6052198?v=4","gravatar_id":"","url":"https://api.github.com/users/gabime","html_url":"https://github.com/gabime","followers_url":"https://api.github.com/users/gabime/followers","following_url":"https://api.github.com/users/gabime/following{/other_user}","gists_url":"https://api.github.com/users/gabime/gists{/gist_id}","starred_url":"https://api.github.com/users/gabime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabime/subscriptions","organizations_url":"https://api.github.com/users/gabime/orgs","repos_url":"https://api.github.com/users/gabime/repos","events_url":"https://api.github.com/users/gabime/events{/privacy}","received_events_url":"https://api.github.com/users/gabime/received_events","type":"User","site_admin":false},"created_at":"2018-07-22T07:37:38Z","updated_at":"2018-07-22T07:37:38Z","author_association":"OWNER","body":"There is already an optional  ```SPDLOG_WCHAR_TO_UTF8_SUPPORT``` macro.\r\nSo maybe a workaround would be:\r\n```c++\r\n#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT\r\nWriteConsoleW(..)\r\n#else\r\nWriteConsoleA(..)\r\n#endif"}}
{"actor":{"display_login":"gabime"}}