{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/1877","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/1877/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/1877/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/1877/events","html_url":"https://github.com/mpv-player/mpv/pull/1877","id":71437661,"number":1877,"title":"Support UTF-8 in write_json_str. Fixes #1874","user":{"login":"ScoreUnder","id":1123686,"avatar_url":"https://avatars.githubusercontent.com/u/1123686?v=3","gravatar_id":"","url":"https://api.github.com/users/ScoreUnder","html_url":"https://github.com/ScoreUnder","followers_url":"https://api.github.com/users/ScoreUnder/followers","following_url":"https://api.github.com/users/ScoreUnder/following{/other_user}","gists_url":"https://api.github.com/users/ScoreUnder/gists{/gist_id}","starred_url":"https://api.github.com/users/ScoreUnder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScoreUnder/subscriptions","organizations_url":"https://api.github.com/users/ScoreUnder/orgs","repos_url":"https://api.github.com/users/ScoreUnder/repos","events_url":"https://api.github.com/users/ScoreUnder/events{/privacy}","received_events_url":"https://api.github.com/users/ScoreUnder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T00:30:15Z","updated_at":"2015-04-28T00:30:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mpv-player/mpv/pulls/1877","html_url":"https://github.com/mpv-player/mpv/pull/1877","diff_url":"https://github.com/mpv-player/mpv/pull/1877.diff","patch_url":"https://github.com/mpv-player/mpv/pull/1877.patch"},"body":"I will admit to not having read any sort of pull request guidelines, so feel free to reprimand me if I've done something dumb."},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/96857195","html_url":"https://github.com/mpv-player/mpv/pull/1877#issuecomment-96857195","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/1877","id":96857195,"user":{"login":"ScoreUnder","id":1123686,"avatar_url":"https://avatars.githubusercontent.com/u/1123686?v=3","gravatar_id":"","url":"https://api.github.com/users/ScoreUnder","html_url":"https://github.com/ScoreUnder","followers_url":"https://api.github.com/users/ScoreUnder/followers","following_url":"https://api.github.com/users/ScoreUnder/following{/other_user}","gists_url":"https://api.github.com/users/ScoreUnder/gists{/gist_id}","starred_url":"https://api.github.com/users/ScoreUnder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScoreUnder/subscriptions","organizations_url":"https://api.github.com/users/ScoreUnder/orgs","repos_url":"https://api.github.com/users/ScoreUnder/repos","events_url":"https://api.github.com/users/ScoreUnder/events{/privacy}","received_events_url":"https://api.github.com/users/ScoreUnder/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T00:30:54Z","updated_at":"2015-04-28T00:30:54Z","body":"Manual tests on a couple of videos:\r\n\r\nValid input:\r\n```\r\nscore@kirisame ~ % echo '{\"command\":[\"get_property_string\",\"media-title\"]}' | socat - unix:\"$HOME/.config/mpv/mpv.sock\"\r\n{\"data\":\"\\u6771\\u65b9Vocal\\u3000C83\\u79c1\\u7684\\u826f\\u66f2\\u30e1\\u30c9\\u30ec\\u30fc東方Vocal　C83私的良曲メドレー.mp4\",\"error\":\"success\"}\r\nscore@kirisame ~ % echo '{\"command\":[\"get_property_string\",\"media-title\"]}' | socat - unix:\"$HOME/.config/mpv/mpv.sock\" | jq -r .data\r\n東方Vocal　C83私的良曲メドレー東方Vocal　C83私的良曲メドレー.mp4\r\n```\r\n\r\nInvalid input: (filename is \"test\\x52\\xCD\\x01\\x99\\x99\\xDD\\xFF.mp4\")\r\n```\r\nscore@kirisame ~ % echo '{\"command\":[\"get_property_string\",\"media-title\"]}' | socat - unix:\"$HOME/.config/mpv/mpv.sock\"\r\n{\"data\":\"testR\\u00cd\\u0001\\u0099\\u0099\\u00dd\\u00fftestRÍÝÿ.mp4\",\"error\":\"success\"}\r\nscore@kirisame ~ % echo '{\"command\":[\"get_property_string\",\"media-title\"]}' | socat - unix:\"$HOME/.config/mpv/mpv.sock\" | jq -r .data\r\ntestRÍÝÿtestR�����.mp4\r\n```\r\n\r\n"}}