ironsmile / euterpe

Self-hosted music streaming server 🎶 with RESTful API and Web interface. Think of it as your very own Spotify! ☁️🎧

Home Page:https://listen-to-euterpe.eu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fallback encoding for non-UTF8 meta data

ironsmile opened this issue · comments

As most who do not speak english as their native language know, not all meta data in music files in the wild is in ASCII or Unicode. This is certainly the case for my own library. The current implementation of httpms does not handle this at all.

So I think the following scheme would solve the problem. A fallback_encoding setting is introduced. Whenever a string is not encoded with UTF8, this fallback encoding would be assumed and used to read it.

This scheme does not solve the problem completely. What happens when you have files with two (or more) different and exotic encodings? But at the moment it is the simplest solution which will solve my particular case.