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

Some text is garbled #1463

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

Some text is garbled #1463

xfrqh opened this issue May 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@xfrqh
Copy link

xfrqh commented May 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The text of the artist in the interest recommendations is garbled.

Expected Behavior

No garbled text.

Steps to reproduce

  1. Launch Spotube
  2. Scroll down
2024-05-02_14-16-27
  1. You can see that the text of the artist in the interest recommendations is garbled.

Spotify 客户端的正常表现

Screenshot_2024-05-02-13-52-42-276_com spotify music

Operating System

Android: 13
UI: MIUI 14.0.8.0(TKPCNXM)
Linux Kernel: 4.14.186-gaa24d707761c
Device: Redmi Note 10 Pro(chopin)
Magisk: 26.4-kitsune(26400)

Spotube version

3.6.0 (30)

Installation source

F-Droid (Android)

Additional information

No response

Self grab

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

As I pointed out in #1475, This behavior is consistent with mis-interpreting UTF-8 text as Latin-1.

Correct text: 每日推荐

UTF-8 bytes: E6 AF 8F E6 97 A5 E6 8E A8 E8 8D 90

Misinterpreted as Latin-1: ���� (� = byte not mapped to any character)

@KRTirtho
Copy link
Owner

KRTirtho commented Jun 1, 2024

I fixed the issue. But, it was actually related to the http package. It uses latin-1 by default for all application/json responses without ; chartset=utf8 in 2024. I didn't know that until facing this issue.

dart-lang/http#175

@KRTirtho KRTirtho closed this as completed Jun 1, 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
Projects
Status: Done
Development

No branches or pull requests

3 participants