JUCE URL class problem


#1

I wrote the following code:
URL test("test.com/abc.php?x=abc%C0%EBdef");
cout << test.toString(true);

It output “test.com/abc.php?x=abc”.
The “%C0%EBdef” disappear.

And I found that wherever the “%C0” appears, wherever the parameter stops.
Why did this happen? Can anyone help me?


#2

AFAIK these characters are not allowed in an URL:

Hope that helps


#3

Yep. Don’t try to pre-encode the string, just give it the unicode you actually want and the URL class will encode it for you.