Well, in that case, my idea may work. I've discovered that some servers
send the file name,
after the download has started. So, I thought that this can solve the "unicode problem" once and for good.
For example, you may add an option (to users with unicode problems), to generate and use generic URLs, instead of using URLs with the file name embedded. For example:
Instead of this:
http://myserver.com/folder1/folder2/file123.rar
http://myserver.com/folder52/folder62/file123.rar
Give something like:
http://myserver.com/download/333445289345343 (some random number)
http://myserver.com/download/845600032348881 (some random number)
...and
when the download starts, send the real file name (file123.rar)
I've seen this in a lot of servers. For example, when you download a subtitle from addic7ed.com, this is exactly what happens.
Here is the addic7ed.com example.The URL was:
http://addic7ed.com/original/88150/1
and when the download has started, it automatically sends
the real file name: "
Chicago PD - 01x14 - The Docks.LOL.English.HI.C.orig.Addic7ed.com.srt"
Check the log of my FlashGet:
Thu May 15 03:05:15 2014 Conectando www.addic7ed.com:80
Thu May 15 03:05:15 2014 Conectando www.addic7ed.com [IP=94.23.9.195:80]
Thu May 15 03:05:16 2014 Conectado
Thu May 15 03:05:16 2014 GET /original/88150/1 HTTP/1.1
Thu May 15 03:05:16 2014 Host: www.addic7ed.com
Thu May 15 03:05:16 2014 Accept: */*
Thu May 15 03:05:16 2014 Referer: http://www.addic7ed.com/serie/Chicago_PD/1/14/The_Docks
Thu May 15 03:05:16 2014 User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.17...
Thu May 15 03:05:16 2014 Pragma: no-cache
Thu May 15 03:05:16 2014 Cache-Control: no-cache
Thu May 15 03:05:16 2014 Connection: close
Thu May 15 03:05:17 2014 HTTP/1.1 200 OK
Thu May 15 03:05:17 2014 Server: nginx
Thu May 15 03:05:17 2014 Date: Thu, 15 May 2014 06:05:12 GMT
Thu May 15 03:05:17 2014 Content-Type: text/srt; charset=
Thu May 15 03:05:17 2014 Transfer-Encoding: chunked
Thu May 15 03:05:17 2014 Connection: close
Thu May 15 03:05:17 2014 X-Powered-By: PHP/5.3.3
Thu May 15 03:05:17 2014 Set-Cookie: PHPSESSID=2qg3b7dgpipjptfeknpsmq0br7; path=/
Thu May 15 03:05:17 2014 Expires: Thu, 19 Nov 1981 08:52:00 GMT
Thu May 15 03:05:17 2014 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Thu May 15 03:05:17 2014 Pragma: no-cache
Thu May 15 03:05:17 2014 Content-Disposition: attachment; filename="Chicago PD - 01x14 - The Docks.LOL.English.HI.C.orig.Addic7ed.com.srt"
Thu May 15 03:05:17 2014 ¡Empezando a recibir datos!
These are the important lines:
Thu May 15 03:05:16 2014
GET /original/88150/1 HTTP/1.1Thu May 15 03:05:17 2014
Content-Disposition: attachment; filename="Chicago PD - 01x14 - The Docks.LOL.English.HI.C.orig.Addic7ed.com.srt"If you need another example to analyze, just ask me.
Do you think this can fix the problem and make HFS unicode compatible?... (I'm just trying to help)