HookedBehemoth / sys-tune

Background audio player for the Nintendo switch
145 stars 10 forks source link

Support for utf8 characters #14

Closed pseiler closed 4 years ago

pseiler commented 4 years ago

When I try to enter a music directory containing some umlauts (f.e. an "Ä") I get this error:

Something went wrong :/
2002-0001

Also the umlaut isn't displayed properly. It gets replaced with an underscore.

If I try to play a mp3 file with an umlaut it won't do anything.

This seems an encoding issue to me. Adding support for / switch to utf8 encoding should fix this issue.

HookedBehemoth commented 4 years ago

Pretty sure that's an issue with Nintendo's broken FAT drivers. I'll look into it.

pseiler commented 4 years ago

Thank you very much. Looking forward to it!

HookedBehemoth commented 4 years ago

According to SciresM (atmosphere lead programmer): The issue with the FAT driver implementation is that prFILE2 deals in SJIS but the interface to it encodes everything with UTF-8. The information that ends up on my end is just: these files/folders are named _ or Mot_rhead So now you want to open that file and you give the filesystem sysmodule the name of the file. That checks back with prFILE2 drivers and they have never heard of a folder called Mot_rhead. This is 100% Nintendos fault and I can't do much about this. SciresM plans to reimplement the fs sysmodule in 2021-2022. https://github.com/Atmosphere-NX/Atmosphere/blob/master/docs/roadmap.md#fs-reimplementation

pseiler commented 4 years ago

Sad news. I come back when the fs code got reimplemented. Thank you for your effort. This is a really cool project.

HookedBehemoth commented 4 years ago

Closing this as this needs to be fixed somewhere else.

Either Nintendo fixes their drivers or atmosphere re-implements the FS sysmodule.

HookedBehemoth commented 3 years ago

Great News! SciresM is working on a fix for this double encoding issue. So this might be resolved relatively soon and we don't have to wait for fs reimplementation.

pseiler commented 3 years ago

This sounds awesome. Looking forward to it!