switchbrew / switch-examples

Switch examples for devkitA64 and libnx.
https://devkitpro.org/viewforum.php?f=42
559 stars 99 forks source link

fs/sdmc example are not supported chinese characters #106

Closed baiXfeng closed 1 year ago

baiXfeng commented 1 year ago

I am a Chinese developer. I want to traverse and access files with Chinese characters on the disk. I searched a lot of information with Google, and also read the source code related to devkitPro/switch. I also tried to use some low-level interfaces to traverse the disk files, but all failed. How can I traverse and read and write files containing Chinese characters?

fincs commented 1 year ago

This is a known issue that unfortunately cannot be fixed without reimplementing the FS sysmodule. The FAT driver Nintendo used is incorrectly configured to assume filenames are encoded as Shift-JIS, even though the rest of the system uses UTF-8.