{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/12259","repository_url":"https://api.github.com/repos/radare/radare2","labels_url":"https://api.github.com/repos/radare/radare2/issues/12259/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/12259/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/12259/events","html_url":"https://github.com/radare/radare2/pull/12259","id":383237386,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyNzU1Nzc4","number":12259,"title":"Replace r_str_utf16_encode() for escaping strings for json","user":{"login":"thestr4ng3r","id":1460997,"node_id":"MDQ6VXNlcjE0NjA5OTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1460997?v=4","gravatar_id":"","url":"https://api.github.com/users/thestr4ng3r","html_url":"https://github.com/thestr4ng3r","followers_url":"https://api.github.com/users/thestr4ng3r/followers","following_url":"https://api.github.com/users/thestr4ng3r/following{/other_user}","gists_url":"https://api.github.com/users/thestr4ng3r/gists{/gist_id}","starred_url":"https://api.github.com/users/thestr4ng3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thestr4ng3r/subscriptions","organizations_url":"https://api.github.com/users/thestr4ng3r/orgs","repos_url":"https://api.github.com/users/thestr4ng3r/repos","events_url":"https://api.github.com/users/thestr4ng3r/events{/privacy}","received_events_url":"https://api.github.com/users/thestr4ng3r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T18:04:42Z","updated_at":"2018-11-22T03:02:28Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/radare/radare2/pulls/12259","html_url":"https://github.com/radare/radare2/pull/12259","diff_url":"https://github.com/radare/radare2/pull/12259.diff","patch_url":"https://github.com/radare/radare2/pull/12259.patch"},"body":"Fix #11395\r\n\r\nI added the function `r_str_escape_utf8_to_json()`, which can be used to explicitly escape a utf-8 string for json.\r\n`r_str_utf16_encode()` looks very wrong to me. All it does is go through the string byte by byte and print non-printable bytes as `\\u00xx`, which is nonsense, because it corresponds to no real encoding and especially not to utf-16."},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/440898713","html_url":"https://github.com/radare/radare2/pull/12259#issuecomment-440898713","issue_url":"https://api.github.com/repos/radare/radare2/issues/12259","id":440898713,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDg5ODcxMw==","user":{"login":"radare","id":917142,"node_id":"MDQ6VXNlcjkxNzE0Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/917142?v=4","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T03:02:28Z","updated_at":"2018-11-22T03:02:28Z","author_association":"OWNER","body":"what about _for_ instead of _to_ in the namings? lgtm"}}
{"actor":{"display_login":"radare"}}