-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix utf8 in url #1143
base: main
Are you sure you want to change the base?
fix utf8 in url #1143
Conversation
Thanks @alexsorinpop ! Looks ok and matches rfc3986. This also decodes route params to characters (which is desirable). We should add tests for this to make it explicit. I'm (slowly) working through some other corner cases (eg. when there are undecoded path elements, such as when behind a proxy). |
👍 This reminds me that we should attempt to use Unicode::UTF8 if available. Path::Tiny does that1, 2, 3. Does anyone want to open a ticket for this enhancement? |
So after more digging around it seems that as with every utf8 issue you can't just add that and fix utf8. Go figure. I found that the STDERR is not opened as utf8 so it might crash the whole app when a utf8 url errors with some syntax in template toolkit and what I found to be really bizarre is that the session is not always remembered... sometimes it will remember your session and the next url that you open will not work anymore. I tested this with ascii urls and I never get that, but I cannot say that I found a way to reproduce this behavior all the time with utf8 urls. I will still dig around |
Any updates about this? |
@alexsorinpop It's been a while :) Any updates to share? Thanks! |
I suggest we close this and open a ticket that refers to this implementation and discussion to fix the matter. |
@xsawyerx seconded. Are you volunteering to open the new ticket? ;) |
fixed utf8 in urls and added a test for it