popeen / Booksonic-Air

A new Booksonic server based on Airsonic. - OBS: The code here might not be ready for release. Feel free to compile it yourself but if so I recommend searching for the latest commit with the description "Prepare for release"
https://booksonic.org
GNU General Public License v3.0
204 stars 22 forks source link

cover jpg garble with chinese #83

Open Vinery opened 2 years ago

Vinery commented 2 years ago

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

Additional notes

stonespheres commented 1 year ago

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?