![]() |
|
Missing files --> Error: couldn't access file (with special characters) [SOLVED] - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: Support (/forumdisplay.php?fid=4) +--- Thread: Missing files --> Error: couldn't access file (with special characters) [SOLVED] (/showthread.php?tid=2179) |
Missing files --> Error: couldn't access file (with special characters) [SOLVED] - blinkeye - 15-02-2015 12:27 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? RE: Missing files --> Error: couldn't access file (with special characters) - blinkeye - 15-02-2015 12:29 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.flacRE: Missing files --> Error: couldn't access file (with special characters) - simoncn - 15-02-2015 15:59 (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? RE: Missing files --> Error: couldn't access file (with special characters) - blinkeye - 15-02-2015 17:36 (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.logRE: Missing files --> Error: couldn't access file (with special characters) - simoncn - 15-02-2015 18:28 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? RE: Missing files --> Error: couldn't access file (with special characters) - blinkeye - 15-02-2015 18:58 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! RE: Missing files --> Error: couldn't access file (with special characters) [SOLVED] - MikeL - 02-06-2016 19:25 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 |