Closed kdenhartog closed 3 years ago
Looks good, but I think percent encoding should happen regardless of port, to create valid DIDs from hostnames with unicode chars
Looks good, but I think percent encoding should happen regardless of port, to create valid DIDs from hostnames with unicode chars
Do you have an example I should include around this? Are you thinking about percent encoding international Unicode characters?
I don't have an example, but I guess this spec should also cover internationalized domain names. Normally they are encoded using punycode, but I suspect that is not as readily available as percent encoding.
If the domain contains a port percent decode the colon.
If we specify percent encoding as a part of the standard, I think it should be applied generally.
It's been a while, but I do recall some conversation on this topic, and I think views were positive overall.
My comment is also based on those discussions. Those discussions also mentioned percent encoding the path components.
Ok, I think I understand. I'll update the text to reflect that the entire domain gets percent encoded. I'm less certain we want to do this with paths though because percent encoding can pick up /
which could potentially lead to weird behaviors. How about we modify this text for domains only for now and we can discuss paths further to come up with a solid solution for how that might work.
I should have been more clear when i mentioned path components. I meant the sections of the path string that go between the slashes :) But I agree, this can be done later.
3 months later and I still haven't finished updating this PR with the suggestions from @mirceanis
I'm aware of what he means now after our team implemented this further. I just need to update the text to make it more clear. I'll add this to my list of higher priority things to get finished up next week.
I'm going to open a second PR to add that additional text instead.
When can we merge this? would the folks commenting here, please approve or request changes?
Merging this PR, as it's an important detail to have in the spec. We'll address percent-encoding path fragments in a separate PR.
fixes #7