network.request and non-english characters

I am trying to use network.request, but when the url has non english characters it gives me the error (bad url), exeamples,spanish acents,japanese,chines,arabic…etc…

I cant control all languajes of the world…

Is there a solution? Please help.
Thank you [import]uid: 113117 topic_id: 22788 reply_id: 322788[/import]

I post my workaround, perhaps will be useful.

The problem was that one of the parameters in the url used with network.request was a text and could cause problems depending of the language so, i convert only that parameter to html code

local url = require(“socket.url”)

url.encode(string)
In the webservice I decode it.

This silly thing have had me all day crazy :slight_smile:

[import]uid: 113117 topic_id: 22788 reply_id: 90973[/import]

Thank you for posting a follow up; it is always useful for others in the future :slight_smile:

Well done on figuring it out, too - always a great feeling!

Peach :slight_smile: [import]uid: 52491 topic_id: 22788 reply_id: 91062[/import]