I have noticed that the file-based routing system in solid-start returns a 404 error if the file name contains non-ASCII characters. This is because non-ASCII characters are encoded once in the URI, causing a mismatch with the original file name.
I have found a solution by modifying the toPath function in the start/fs-router/path-utils.js file to encode the return value as well.
Can you please confirm if this change is necessary and provide guidance on its potential impact? If necessary, I am willing to submit a pull request to implement this modification.
I have noticed that the file-based routing system in solid-start returns a 404 error if the file name contains non-ASCII characters. This is because non-ASCII characters are encoded once in the URI, causing a mismatch with the original file name.
I have found a solution by modifying the toPath function in the start/fs-router/path-utils.js file to encode the return value as well.
Can you please confirm if this change is necessary and provide guidance on its potential impact? If necessary, I am willing to submit a pull request to implement this modification.
example repo: https://github.com/WincerChan/solid-non-ascii-routing