Google endpoints cannot receive utf-8 characters in localhost

I'm having encoding issues with Google endpoint requests

I am sending utf-8 encoded characters, but on the server I cannot load them.
When you show the lines, you can see these strange characters

Problems only occur on the local host.
Never Build Google App Engine Application Servers

Is there a problem with the wrong configuration?

Request Header:

Host: localhost:8888 
Accept: application/json, text/plain, */*
Accept-Language: en-us,es;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate 
Content-Type: application/json;charset=utf-8
+4
source share
1 answer

, ( , ), devserver URL :

JavaScript:

var local = (location.host.indexOf("localhost") !== -1);
var url = (local) ? encodeURIComponent(article.url) : article.url;

questions, .

0

Source: https://habr.com/ru/post/1529205/


All Articles