Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: mpd error malformed utf-8 characters, possibly incorrectly encoded
#40
(05-27-2022, 04:36 AM)chaos333 Wrote: lucky you are kent.

still no solution yet.
but seems it will happen when i play chinese character albums.

and some times not. i dont know why.

Its most likely because the standard JSON format that moOde uses for data transfer between client and server does not support non-UTF8 characters that are present in "Many Chinese songs and song directories.." as described below by developer @lazybat

Code:
// Many Chinese songs and song directories have characters that are not UTF8 causing json_encode to fail which leaves the libcache json file empty. Replacing the non-UTF8 chars in the array before json_encode solves this problem (@lazybat).

He contributed some code a few years ago that replaces a pattern of non-UTF8 characters by ? to prevent an empty Library.

You could try to edit your file metadata to be JSON compliant or just live with the ?. You could also try contacting @lazybat on Github https://github.com/lazybat
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: mpd error malformed utf-8 characters, possibly incorrectly encoded - by Tim Curtis - 05-28-2022, 04:16 AM

Forum Jump: