Page 1 of 1

Download files with unicode names

PostPosted: Sun Nov 22, 2009 12:45 am
by _Anton_
I try to use this system with cyrilic names of albums and groups. I have some problem as: http://forum.subsonic.org/forum/viewtopic.php?t=1424

In filenames using ASCII charset, but RFC 2047 describes a mechanism to use another encodings with ASCII charset.

Way to convert filenames:
add javax.mail library (or another with implemented class MimeUtility)
use MimeUtility.encodeText(filename, charset, encoding) to encoding text

For example in DownloadController.java:182 add line zipFileName = MimeUtility.encodeText(zipFileName, "UTF-8", "B");

Sorry for my english (8