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

cover jpg garble with chinese #83

Open
Vinery opened this issue Nov 26, 2022 · 1 comment
Open

cover jpg garble with chinese #83

Vinery opened this issue Nov 26, 2022 · 1 comment

Comments

@Vinery
Copy link

Vinery commented Nov 26, 2022

Problem description

When the album folder name is in Chinese, there is no default cover image in the album, and the generated album cover will be garbled.

There may be a missing font or a problem with the encoding of the generated cover image.

coverArt

Steps to reproduce

no

System information

  • Airsonic version: 2201.1.0 – January 13, 2022, based on Airsonic 8b28366
  • Operating system: Debian,Apache Tomcat/9.0.56
  • Java version: * java 1.8.0_345*
  • Proxy server: None
  • Client: Chrome
  • Language: English

Additional notes

@Vinery Vinery changed the title cover cover jpg garble with chinese Nov 26, 2022
@stonespheres
Copy link

Quick look over this one, but it looks like there's a reference to similar issues in this commit: 42e09e8

Some systems use non-standard locales (e.g. en_US.utf8 instead of en_US.UTF-8) to specify Unicode support.

Admittedly I'm unsure how the project handles language support as a whole. I've noticed however that there are several instances of ISO-8859-1 defined as the default page encoding, which unfortunately doesn't support Chinese characters.

<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%>

Example from internalhelp.jsp

Not to say a fix isn't impossible; can anyone shed some light?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants