|
Missing files --> Error: couldn't access file (with special characters) [SOLVED]
|
|
15-02-2015, 12:27
(This post was last modified: 15-02-2015 18:59 by blinkeye.)
Post: #1
|
|||
|
|||
|
I'm using mp3tag with the following tag-to-filename conversion settings:
Code: %artist% - %composer% - %album% - $num(%track%,2) - %title%This results in filenames with special chararacters which cannot be parsed by minimserver: Code: Error: couldn't access file Chicago Symphony Orchestra - Sergey Rachmaninov - Rachmaninov Rhapsody on a Theme of Paganini - 27 - Noches en los jardines de Espa�a I. En el Generalife.flacAfter logging in into the QNAP NAS I think to have the proper locale settings: Code: # locale -aand the filenames (even with special chars) are properly displayed: Code: # ls -lIs there anything I can do besides renaming all the files? |
|||
|
15-02-2015, 12:29
Post: #2
|
|||
|
|||
|
RE: Missing files --> Error: couldn't access file (with special characters)
This also happens with German Umlaute characters:
Code: Error: couldn't access file Chicago Symphony Orchestra - Richard Wagner - Reiner Conducts Wagner - 02 - Die Meistersinger von N�rnberg, opera, WWV 96 Act III Prelude.flac |
|||
|
15-02-2015, 15:59
Post: #3
|
|||
|
|||
RE: Missing files --> Error: couldn't access file (with special characters)
(15-02-2015 12:29)blinkeye Wrote: This also happens with German Umlaute characters: What output do you get from "locale" (not "locale -a")? What is the platform default charset displayed in the MinimServer log? Do you have 0.8.3 installed? |
|||
|
15-02-2015, 17:36
(This post was last modified: 15-02-2015 17:38 by blinkeye.)
Post: #4
|
|||
|
|||
RE: Missing files --> Error: couldn't access file (with special characters)
(15-02-2015 15:59)simoncn Wrote: What output do you get from "locale" (not "locale -a")? Code: # locale(15-02-2015 15:59)simoncn Wrote: What is the platform default charset displayed in the MinimServer log? Code: # head -n 5 /share/Public/minimserver.log |
|||
|
15-02-2015, 18:28
Post: #5
|
|||
|
|||
|
RE: Missing files --> Error: couldn't access file (with special characters)
It looks like MinimServer is working correctly. This would mean that the problematic filenames don't contain UTF-8 characters but something else.
I presume you created these files using Mp3tag on Windows. If your Windows charset is Windows-1252, you might have filenames containing Windows-1252 characters instead of UTF-8 characters. How did you copy these files from Windows to the QNAP? If you browse these files using QNAP File Station, do the filenames look correct or incorrect? |
|||
|
15-02-2015, 18:58
Post: #6
|
|||
|
|||
|
RE: Missing files --> Error: couldn't access file (with special characters)
You're right, it's a filename encoding issue:
Code: $ isutf8 Chicago\ Symphony\ Orchestra\ -\ Sergey\ Rachmaninov\ -\ Rachmaninov\ Rhapsody\ on\ a\ Theme\ of\ Paganini\ -\ 27\ -\ Noches\ en\ los\ jardines\ de\ España\ I.\ En\ el\ Generalife.flac I'm using mp3tag on Linux with Wine, but the file encoding seems to be latin1. What I now did was using convmv to convert files from iso-8859-1 to utf8: Code: convmv --notest -f iso-8859-1 -t utf8 file-with-encoding-issues.flacAs always, thank you Simon for the prompt and valid replies! |
|||
|
02-06-2016, 19:25
(This post was last modified: 02-06-2016 19:28 by MikeL.)
Post: #7
|
|||
|
|||
|
RE: Missing files --> Error: couldn't access file (with special characters) [SOLVED]
Funny how problems multiply! I downloaded a couple of new flacs and could not understand why they were not indexing. Investigating led here: then I discovered that there were more than a hundred tracks failing that I had never noticed were missing. I think that the problem in my case leads back to unpredictable characters coming from cddb which I use to make the filenames.
Anyway, I wrote a little script to parse the log file and make the fixes. Here it is if anyone else wants it. It basically wraps convmv and uchardet (widely available). Code: #!/bin/bashObviously the LOG path needs to match the target system. Either uncomment #DOIT in the script or provide it on the command line change talk into action Code: chmod 777 ./fixnames.sh |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



