![]() |
|
A question for the geek Simon about NFC / NFD - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: Music Tagging (/forumdisplay.php?fid=9) +--- Thread: A question for the geek Simon about NFC / NFD (/showthread.php?tid=3962) |
A question for the geek Simon about NFC / NFD - lyapounov - 07-04-2017 20:00 Hello Simon first, this post could be elsewhere, feel free to move. Here is the problem : I transfer all my music from my Macbook to a NAS (Qnap or Syno) using Transmit . And of course, all accented letters are coded using Apple's horrible 2 characters NFD coding. As a result, files or folders with accented letters don't sync with Amazon cloud. I was searching for a way to convert automatically from NFD to NFC on the NAS. It seems iconv("UTF-8-MAC", "UTF-8", $file) should do the job, however, even if phpinfo says the contrary, it seems iconv is not available, neither on qnap nor on synology. Simon, I know you did it in java, but how did you adress this issue ? Thx Best RE: A question for the geek Simon about NFC / NFD - BlueDog - 07-04-2017 20:10 Sorry for jumping in here, which NAS are you using? I can't help you with Synology, but if you are using a QNAP you can easily add PHP iconv support by installing the Optware package and then doing: Code: ipkg updateRE: A question for the geek Simon about NFC / NFD - lyapounov - 07-04-2017 21:37 Thx BlueDog yes a Qnap, to which I am new. ipkg not installed, and I don't find optware under appStore. I read it is now deprecated... RE: A question for the geek Simon about NFC / NFD - simoncn - 07-04-2017 22:04 (07-04-2017 20:00)lyapounov Wrote: Simon, I know you did it in java, but how did you adress this issue ? I used the java.text.Normalizer class to convert to NFC if the data is not already in NFC format. RE: A question for the geek Simon about NFC / NFD - lyapounov - 07-04-2017 23:05 (07-04-2017 22:04)simoncn Wrote:(07-04-2017 20:00)lyapounov Wrote: Simon, I know you did it in java, but how did you adress this issue ? Thanks Simon unfortunatly those php classes are not installed on a qnap Best RE: A question for the geek Simon about NFC / NFD - BlueDog - 08-04-2017 08:24 (07-04-2017 21:37)lyapounov Wrote: Thx BlueDog Wow! I did not know that, I just hope my QNAP never fails as I rely on Optware for a lot of things. ![]() The way I see it you have two options: Have a dig around the 'net and QNAP forums and see if there is still a package available that you can install manually, or install another app package that will install iconv as a dependency. Actually, there is a third option but a bit of messing around. Now you have the files on your QNAP you could copy them across to a PC, fix the encoding there, then copy them back to the NAS again. RE: A question for the geek Simon about NFC / NFD - BlueDog - 08-04-2017 17:20 So, I did a bit of digging around and there is an alternative for Optware called Entware: https://github.com/Entware-ng/Entware-ng/wiki/Install-on-QNAP-NAS From what I can gather it's a replacement but not an official Qnap package, so you'll have to follow the manual install instructions as it won't show up in the Qnap package manager. RE: A question for the geek Simon about NFC / NFD - lyapounov - 09-04-2017 01:03 (08-04-2017 08:24)BlueDog Wrote:(07-04-2017 21:37)lyapounov Wrote: Thx BlueDog Thx, but not possible. Actually : all my filenames are ithout any accent, no blank, etc.. I have a php procedure which does exwtract from the track name and clean it. The issue is with my folder names : some have accents. But copying them on a PC means a) I have a PC and b) copying 2.5 T of data... This is why I am searching for a way to do it on the Qnap itself. Will investigate your package. Thx for this. |