Booksonic-Air icon indicating copy to clipboard operation
Booksonic-Air copied to clipboard

cover jpg garble with chinese

Open Vinery opened this issue 2 years ago • 1 comments

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 avatar Nov 26 '22 13:11 Vinery

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?

stonespheres avatar Jul 17 '23 07:07 stonespheres