Hi, I'm trying to send data by using the HTTPRequest function and it works great when the data is pure english. When I put any kind of other languages, the web application is received the garbled.
After testing a while, I doubt that the query_string_from_dict function and HttpRequest function seems not to support non-English language? Please forgive me if I was mistaken.
when in English:
"jsonData":["{\"id\":\"123\",\"en\":\"Hi.\",\"zh\":\"Hi.\"}"]
when I put different language in data:
"jsonData":"%7B%22id%22%3A%22123%22%2C%22en%22%3A%22Hi.%22%2C%22zh%22%3A%22%%%%%%%21%22%7D"
The code: `func _on_WriteButton_pressed(): var headers = ["Content-Type : application/x-www-form-urlencoded"] var http = HTTPClient.new() var headers_pool = PoolStringArray(headers)
var query: Dictionary = {}
query["method"] = "write"
query["jsonData"] = "{\"id\":\"123\",\"en\":\"Hi.\",\"zh\":\"你好!\"}"
$HTTPRequest.request(UrlPath, headers_pool, true, HTTPClient.METHOD_POST, http.query_string_from_dict(query))`