darrenburns / posting

The modern API client that lives in your terminal.
Apache License 2.0
4.92k stars 73 forks source link

unicode characters in response body #31

Closed breakstring closed 3 months ago

breakstring commented 3 months ago

https://github.com/darrenburns/posting/blob/7b1d0ae86d2990fa89d52b612284af3aaf590b55/src/posting/widgets/response/response_area.py#L80

In some JSON-type API requests, the returned content may contain Unicode characters, it will show as '\uxxx....' and making the response body unreadable. Maybe, will you please add an 'ensure_ascii=False' parameter in json.dumps to resolve this kind of issue? WX20240712-103044

darrenburns commented 3 months ago

Thanks for the report! Fixed in 1.1.0: https://github.com/darrenburns/posting/releases/tag/1.1.0