{"action":"opened","issue":{"url":"https://api.github.com/repos/glejeune/Ruby-Graphviz/issues/115","labels_url":"https://api.github.com/repos/glejeune/Ruby-Graphviz/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/glejeune/Ruby-Graphviz/issues/115/comments","events_url":"https://api.github.com/repos/glejeune/Ruby-Graphviz/issues/115/events","html_url":"https://github.com/glejeune/Ruby-Graphviz/issues/115","id":123685978,"number":115,"title":"GraphViz::parse_string and unicode lables","user":{"login":"vizvamitra","id":5035283,"avatar_url":"https://avatars.githubusercontent.com/u/5035283?v=3","gravatar_id":"","url":"https://api.github.com/users/vizvamitra","html_url":"https://github.com/vizvamitra","followers_url":"https://api.github.com/users/vizvamitra/followers","following_url":"https://api.github.com/users/vizvamitra/following{/other_user}","gists_url":"https://api.github.com/users/vizvamitra/gists{/gist_id}","starred_url":"https://api.github.com/users/vizvamitra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizvamitra/subscriptions","organizations_url":"https://api.github.com/users/vizvamitra/orgs","repos_url":"https://api.github.com/users/vizvamitra/repos","events_url":"https://api.github.com/users/vizvamitra/events{/privacy}","received_events_url":"https://api.github.com/users/vizvamitra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-23T16:22:36Z","updated_at":"2015-12-23T16:22:36Z","closed_at":null,"body":"Isn't it a strange behavior?\r\n\r\n``` ruby\r\ndot_str = \"digraph G {\\nHello [label = \\\"안녕하세요\\\"];\\nWorld [label = \\\"Мир\\\"];\\n  Hello -> World;\\n}\\n\"\r\n\r\nGraphViz.parse_string(dot_str).output(none: String)\r\n# => \"digraph G {\\nHello [label = \\\"\\\\xEC\\\\x95\\\\x88\\\\xEB\\\\x85\\\\x95\\\\xED\\\\x95\\\\x98\\\\xEC\\\\x84\\\\xB8\\\\xEC\\\\x9A\\\\x94\\\"];\\nWorld [label = \\\"\\\\xD0\\\\x9C\\\\xD0\\\\xB8\\\\xD1\\\\x80\\\"];\\n  Hello -> World;\\n}\\n\"\"\r\n\r\nGraphViz.parse_string(dot_str).output(png: 'test.png') # =>\r\n```\r\n\r\n![test](https://cloud.githubusercontent.com/assets/5035283/11980242/7e0d83b0-a9aa-11e5-8d3e-639763834711.png)\r\n\r\n\r\n(ruby 2.0.0p353, ruby-graphviz 1.2.2, graphviz 2.36.0)"}}