{"action":"created","issue":{"url":"https://api.github.com/repos/olikraus/u8g2/issues/693","repository_url":"https://api.github.com/repos/olikraus/u8g2","labels_url":"https://api.github.com/repos/olikraus/u8g2/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/olikraus/u8g2/issues/693/comments","events_url":"https://api.github.com/repos/olikraus/u8g2/issues/693/events","html_url":"https://github.com/olikraus/u8g2/issues/693","id":356101133,"node_id":"MDU6SXNzdWUzNTYxMDExMzM=","number":693,"title":"u8g2_GetUTF8Width problem on cyrillic strings","user":{"login":"karawin","id":7613191,"node_id":"MDQ6VXNlcjc2MTMxOTE=","avatar_url":"https://avatars3.githubusercontent.com/u/7613191?v=4","gravatar_id":"","url":"https://api.github.com/users/karawin","html_url":"https://github.com/karawin","followers_url":"https://api.github.com/users/karawin/followers","following_url":"https://api.github.com/users/karawin/following{/other_user}","gists_url":"https://api.github.com/users/karawin/gists{/gist_id}","starred_url":"https://api.github.com/users/karawin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karawin/subscriptions","organizations_url":"https://api.github.com/users/karawin/orgs","repos_url":"https://api.github.com/users/karawin/repos","events_url":"https://api.github.com/users/karawin/events{/privacy}","received_events_url":"https://api.github.com/users/karawin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-31T19:36:43Z","updated_at":"2018-09-01T06:36:42Z","closed_at":null,"author_association":"NONE","body":"It seems that the function u8g2_GetUTF8Width has a problem on utf8 cyrillic (and may be other) strings.\r\n\r\nThe string \"Ð¡ÑƒÐ¿ÐµÑ€Ð´Ð¸ÑÐºÐ¾Ñ‚ÐµÐºÐ° 90Ñ…\"  ie:\"Супердискотека 90х\"\r\nreturn 19\r\n\r\nWhile the string \"Virgin Radio New\"\r\nreturn 80\r\n\r\nlcd SH1106\r\n#define U8G2_16BIT\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/olikraus/u8g2/issues/comments/417837218","html_url":"https://github.com/olikraus/u8g2/issues/693#issuecomment-417837218","issue_url":"https://api.github.com/repos/olikraus/u8g2/issues/693","id":417837218,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzgzNzIxOA==","user":{"login":"olikraus","id":1084992,"node_id":"MDQ6VXNlcjEwODQ5OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1084992?v=4","gravatar_id":"","url":"https://api.github.com/users/olikraus","html_url":"https://github.com/olikraus","followers_url":"https://api.github.com/users/olikraus/followers","following_url":"https://api.github.com/users/olikraus/following{/other_user}","gists_url":"https://api.github.com/users/olikraus/gists{/gist_id}","starred_url":"https://api.github.com/users/olikraus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olikraus/subscriptions","organizations_url":"https://api.github.com/users/olikraus/orgs","repos_url":"https://api.github.com/users/olikraus/repos","events_url":"https://api.github.com/users/olikraus/events{/privacy}","received_events_url":"https://api.github.com/users/olikraus/received_events","type":"User","site_admin":false},"created_at":"2018-09-01T06:36:42Z","updated_at":"2018-09-01T06:36:42Z","author_association":"OWNER","body":"It works as expected. The output is:\r\n```\r\nlen1: 107, str1: Супердискотека 90х\r\nlen2: 95, str2: Virgin Radio New\r\n```\r\n![issue693](https://user-images.githubusercontent.com/1084992/44943142-c75f3900-adc1-11e8-839b-b5c851175da9.png)\r\n\r\nCode is here:\r\nhttps://github.com/olikraus/u8g2/blob/master/sys/sdl/issue693/main.c#L26"}}
{"actor":{"display_login":"olikraus"}}