Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-English text is garbled sometimes (non-ASCII mojibake) #1475

Closed
1 of 2 tasks
JapanYoshi opened this issue May 4, 2024 · 4 comments
Closed
1 of 2 tasks

Non-English text is garbled sometimes (non-ASCII mojibake) #1475

JapanYoshi opened this issue May 4, 2024 · 4 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@JapanYoshi
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Screenshot_20240504-232048

As you can see in the screenshot, all non-English text (more precisely, every non-ASCII character) is garbled by the app.

A quick bit of research shows that 令 is the result of mis-interpreting in 令和ポップス, and that the app mis-interprets UTF-8 encoded bytes as Latin-1 (an ancient encoding that nobody serious uses today except where backwards-compatibility with 90s-2000s computer programs is critical).

Screenshot_20240504-232905

Oddly enough, some sections are correctly displaying Japanese text, including the same album I used as an example! The use of Latin-1 seems not to be a hard-coded choice, but a mistake in character encoding detection somewhere. I couldn’t imagine Spotify’s API changing character encodings on the fly like that, so forcing UTF-8 should work 100% correctly.

Expected Behavior

Non-ASCII text should display correctly as UTF-8 encoded text. There must be an error introduced somewhere between receiving the data from Spotify’s API and displaying the text on screen. Perhaps some parsing function detects some UTF-8 text as Latin-1, and must be told to always use UTF-8?

Steps to reproduce

  1. Open the app
  2. Log into Spotify if not already done so
  3. Make the app display non-ASCII text

Operating System

Android

Spotube version

v3.6.0

Installation source

F-Droid (Android)

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@JapanYoshi JapanYoshi added the bug Something isn't working label May 4, 2024
@HUYDGD
Copy link

HUYDGD commented May 6, 2024

same bug happened to me

@UlyC
Copy link

UlyC commented May 7, 2024

same bug

@SuTree
Copy link

SuTree commented May 8, 2024

same bug

@KRTirtho
Copy link
Owner

KRTirtho commented May 9, 2024

Duplicate of #1463

@KRTirtho KRTirtho marked this as a duplicate of #1463 May 9, 2024
@KRTirtho KRTirtho closed this as completed May 9, 2024
@KRTirtho KRTirtho added the duplicate This issue or pull request already exists label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants