On Tue, Mar 11, 2014 at 12:44:35AM +0100, Chris Young wrote:
> Are nsurls supposed to be UTF-8?
> I don't think they are, which means the urlencoding it does might not
> necessarily be consistent. Moreover, the scheme and host are getting
> urlencoded when they shouldn't be (although this is easy to fix).
It requires some careful thought about where to put the encoding and
decoding. Should it just be in the GUI? In the fetch layer? Or
somewhere between?
I've not looked closely enough to be able to make a conclusion, but my
gut feeling is that it is a user interface and user information issue,
so should probably be handled entirely in the GUI (which can also decide
if it's a scam IDN and show the xn-- variety instead). The only thing
that could be tricky is if people use puny-encoded URLs in links and
such, which would mean that they's need to be handled in the browser
layer as well as the GUI layer.
B.
No comments:
Post a Comment