I'm receiving a JSON message through Web Server.
But some weird caracteres appears. And I dont know how to convert to UTF-8.
Function GetApi0010(url,txt)
Dim http,ret,lenght,aux, sts
Set http = CreateObject("MSXML2.ServerXMLHTTP.6.0")
http.setTimeouts 1000, 1000, 1000, 1000
http.open "POST", url, True
http.setRequestHeader "Content-type", "application/json; charset=utf-8"
http.send(txt)
http.waitForResponse 200 Or 4
aux = http.responseText
End Function
The response is:
aux = OB 302764 informada estom status Encerrada onde nossivel iniciar/continuar a fase! Somente OB s com status Emitida ou Programada podem ser utilizadas.
In the server the message is:
aux = OB 302764 informada está com status Encerrada onde não é possivel iniciar/continuar a fase! Somente OB s com status Emitida ou Programada podem ser utilizadas.
Someone have any idea how to convert? Or Where the problem is?
:unsure: