Closed aticie closed 3 years ago
Fixes responses for requests to beatmaps with Unicode titles:
Formerly
bmap = api.beatmap(2293914) print(serialize_model(bmap))
would return:
..., "beatmapset": {"artist": "Sally", "artist_unicode": "\u30b5\u30ea\u30fc", ...
With this change it returns:
..., "beatmapset": {"artist": "Sally", "artist_unicode": "サリー", ...
unless ensure_ascii=True is explicitly provided.
ensure_ascii=True
Fixes responses for requests to beatmaps with Unicode titles:
Formerly
would return:
..., "beatmapset": {"artist": "Sally", "artist_unicode": "\u30b5\u30ea\u30fc", ...
With this change it returns:
..., "beatmapset": {"artist": "Sally", "artist_unicode": "サリー", ...
unless
ensure_ascii=True
is explicitly provided.