aequitas / concourse-http-api-resource

Concourse resource to allow interaction with (simple) HTTP API's.
https://hub.docker.com/r/aequitas/http-api-resource/
MIT License
25 stars 18 forks source link

json.dumps need `ensure_ascii=False `. #9

Closed masaki-takano closed 6 years ago

masaki-takano commented 6 years ago

It is a very good tool.

https://github.com/aequitas/concourse-http-api-resource/blob/a4400a547ff11110c78b4446161c7ca6cd25e791/assets/resource.py#L33

I think json.dumps need ensure_ascii=False. if not Japanese characters etc. garbled.

dict = {"hello": "日本語"}
text = json.dumps(dict, ensure_ascii=False)

Thank you

aequitas commented 6 years ago

Fixed in #10