The Ruby spec has a test with windows encoded string basename_spec.rb#L162-L166 . This encoding is not UTF-8 compatible and is likely a variation on UTF-16 or UCS-2. Rust wasn't built to support these with the standard String or &str so custom types would need to be written to support such encodings.
The occurrence of these encodings should be virtually non-existent in web frameworks so problems would likely only arise in Windows specific applications.
Work that has been done in the community towards making a working solution includes
This would make much more sense to implement in FasterPath once windows support has been added and code compiles specifically for Windows. So this should be considered after #102
The Ruby spec has a test with windows encoded string basename_spec.rb#L162-L166 . This encoding is not UTF-8 compatible and is likely a variation on UTF-16 or UCS-2. Rust wasn't built to support these with the standard
Stringor&strso custom types would need to be written to support such encodings.The occurrence of these encodings should be virtually non-existent in web frameworks so problems would likely only arise in Windows specific applications.
Work that has been done in the community towards making a working solution includes
This would make much more sense to implement in FasterPath once windows support has been added and code compiles specifically for Windows. So this should be considered after #102