Anyone ever had a `UTF-8 is not supported.` except...
# ktor
m
Anyone ever had a
UTF-8 is not supported.
exception when using
Url(String)
constructor on K/JS? I’m trying to figure out why it’s not working 😞 I’m on Cloudflare Workers.
j
Because url's by definition does not support unicode? You are probably looking for encodeURIComponent ?
m
Sure URLs support unicode - just in encoded form (using the method you mentioned). However exactly these URLs don’t work. Ktor can’t decode them 😞
j
No, url's does not support unicode, you have to encode them.
m
I think we mean the same thing