json - django rest-framework api and unicode characters -
I am using the DJJO-Rest-Framework to create an API for my application. My application uses Greek characters as the values of my model I have created my ideas and used the Unicode JSON renderer to return Jason result.
Classes chapter Vivetate (viewsets.ModelViewSet): queryset = Chapter.objects.all () serializer_class = Chapter Serializer Renderer_class = (Unicode JSNRander,) Jason is back, but the Greek letters are not recognized by the browser ("Ξ ΟΟΟΞΈΞΟΞ ·)." On the Dev console of Chrome, however, the preview of the feedback on the Network tab normally shows the Greek letters. Recognized
This is a browser issue.
UTF for JSON content -8; Django Rest Framework is encoding your JSON is properly in UTF-8, but your browser does not display it correctly.
Content-Type in charset = utf-8 HTTP header. However, the idea defines, therefore it should not be used. Django Rest Framework respects it by not including it. For one, but unfortunately nobody cared. Looks like there is only one problem in rupees.
Comments
Post a Comment