how can i pass url variables not in english

41 Views Asked by At

i have some code that sends me to a url website and the url has a username and password variables in it. when the username and password are in english it works well and it signs the user in. (for example http://mywebsite.example?username=john&password=qwerty)

but when i send the variables in hebrew (in my case) i get an error saying incorrect URL or login info. (for example http://mywebsite.example?username=ראובןהגבר&password=qwerty)

At first I tried to encode the username in UTF-8 so it matches the website encoding but that didn't work. what is the problem and how can i fix it? Thanks

0

There are 0 best solutions below