You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing a RESTful server that reponses in the portuguese language and with the ensure_ascii=True the 'ã' looks like '\u00e3' in the json responses.
Is there any problem what will cause make this change (ensure_ascii=False)? Or is there any way to implement an option to JSONAPIAdapter call json.dumps with the argument ensure_ascii=False?
I think that decode the json to utf8 is not job for the client application.
Maybe can I use the postprocessors in some way?
The text was updated successfully, but these errors were encountered:
yudi-matsuzake
changed the title
JSONAPIAdapter calls json.dumps the option ensure_ascii=True
JSONAPIAdapter calls json.dumps with option ensure_ascii=True
Oct 26, 2016
Hm... you'd probably want to adapt the JSONAPIAdapter. What is your current output and what is the output that you actually desired? Can you give me an example?
I just put ensure_ascii=False in every json.dumps call and worked. Do you have any problem in mind that may appear when you add to JSONAPIAdapter? If you are interested I can make a pull request.
I'm implementing a RESTful server that reponses in the portuguese language and with the
ensure_ascii=True
the 'ã' looks like '\u00e3' in the json responses.Is there any problem what will cause make this change (
ensure_ascii=False
)? Or is there any way to implement an option to JSONAPIAdapter call json.dumps with the argumentensure_ascii=False
?I think that decode the json to utf8 is not job for the client application.
Maybe can I use the postprocessors in some way?
The text was updated successfully, but these errors were encountered: