astronautlevel2 / Anemone3DS

A theme and boot splash manager for the Nintendo 3DS console
GNU General Public License v3.0
908 stars 44 forks source link

[Bug] Japanese named themes breaks while downloaded on anemone #303

Closed cooolgamer closed 5 months ago

cooolgamer commented 5 months ago

Description Downloading a theme with Japanese characters breaks the theme file until renamed The theme itself downloads fine and is fine itself, but gets a weird name that make it unusable on anemone

Steps to reproduce Download a theme with Japanese characters like this one: https://themeplaza.art/item/80790 using QR scanner or themeplaza browser

Expected behavior The theme should be named as the theme name

Screenshots The downloaded theme have a weird name and is not usable on anemone: image image

But the file itself is fine: image

Crash dumps (No crash)

System information Tried on n2DS XL and 3DS XL

System firmware version e.g. 11.14.0 (this can be found in the System Settings applet by default) 11.17.0-50E

Anemone3DS version e.g. v2.2.0 (found in the bottom-left of Anemone3DS) v2.3.1, I compiled the latest commits and changed the color, this bug also apply on the releases build

Luma3DS version e.g. v10.2.1 (found in the menu when you hold Select on boot) v13.0.2

If you are not on the latest version of Anemone3DS, your bug report will likely be closed. Ensure the bug occurs in the latest build!

astronautlevel2 commented 5 months ago

Probably something with the encoding downloaded from Theme Plaza being different than what Anemone is expecting

@Helloman892 Do you have any insights into this? If not I'll try to replicate it this weekend.

astronautlevel2 commented 5 months ago

Unsurprisingly Anemone was assuming ASCII even though the encoding was UTF-16 - we'll have a new release soon once we close a couple more issues. If you build the latest commit it should work properly.