Post Reply 
Accented characters in filenames prevent index to finnish
17-12-2021, 23:13
Post: #1
Accented characters in filenames prevent index to finnish
Dear Support,
After updating MinimServer to v2.1 scanning the library fails on characters like é, ç, etc, and also on some cyrillic characters. Example:
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: 0/Мумии Тролль/Морская/01 Вдруг ушли поезда.flac

java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: j/Julien Clerc/Julien Clerc Het Beste Van (P)1990/01 Helène.flac
Enclosed the scanning debug file.

Thanks for the help,
Guy
Find all posts by this user
Quote this message in a reply
17-12-2021, 23:28
Post: #2
RE: Accented characters in filenames prevent index to finnish
There was no file attached to your post.

What device are you using to run MinimServer? What do you see in the MinimServer log for the platform default charset? This should be very near the start of the log.

Problems like this are usually caused by copying a file from one device to another when the devices involved are using different character sets for flienames. For example, copying a file from Windows to a Linux-based device such as a NAS can cause this error depending on how the copying was done.
Find all posts by this user
Quote this message in a reply
17-12-2021, 23:53
Post: #3
RE: Accented characters in filenames prevent index to finnish
Dear Simon,
I try again to post the log.
The files were indeed copied form mac to linux running on an older cubieboard 4, without maintained support. The previous version of minimserver did not have this issue.
MinimServer 2.1 update 206, Copyright © 2012-2021 Simon Nash. All rights reserved.
MinimStreamer 2.0.9, Copyright © 2012-2021 Simon Nash. All rights reserved.
Java™ SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot™ Client VM (build 25.101-b13, mixed mode)
Platform default charset is US-ASCII
System platform is linux-armhf
Using platform default language English (en-US)
Current time is Tue Jan 20 10:49:22 CET 1970 in time zone Europe/Amsterdam
starting MinimServer[Cubieboard8]

I will try to set the default charset to UTF-8. Thanks for the tip.


Attached File(s)
.zip  minimscan.zip (Size: 46.45 KB / Downloads: 2)
.zip  startupMinim.zip (Size: 1.15 KB / Downloads: 1)
Find all posts by this user
Quote this message in a reply
18-12-2021, 11:34
Post: #4
RE: Accented characters in filenames prevent index to finnish
Thanks for this. I understand what is causing this error. I need to set up a machine with a similar configuration to yours so that I can test a fix. I will post back here when I have more news, probably tomorrow.
Find all posts by this user
Quote this message in a reply
19-12-2021, 23:49
Post: #5
RE: Accented characters in filenames prevent index to finnish
I have not been able to reproduce this problem on my test setup (using US-ASCII and a similar filename to yours). Did changing the default charset to UTF-8 solve it for you?
Find all posts by this user
Quote this message in a reply
20-12-2021, 00:17
Post: #6
RE: Accented characters in filenames prevent index to finnish
Dear Simon,
I have not been able to change the locale, I get lots of dependency errors when trying to update some packages needed to change the locale. I think the issue has more to do with my old system then with current minimserver. I will try a clean os install, and if that fails bin the board.
Thanks again for the help, consider my issue as solved.
Find all posts by this user
Quote this message in a reply
20-12-2021, 11:18
Post: #7
RE: Accented characters in filenames prevent index to finnish
When you reinstall, make sure you install the latest Java version. Your log shows you are currently using 1.8.0_101-b13 (released in July 2016). This is very old and might be the reason for the problem. The current version of Java 8 is 1.8.0_311-b11 (released in October 2021).
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: