Enabling NetStorage multi-file download for International language browsers

  • 7008232
  • 29-Mar-2011
  • 26-Apr-2012

Environment

Novell NetStorage
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 3

Situation

When NetStorage downloads folders or multiple files, it creates a zip archive using the Java zip library. International characters in the filenames will not unzip correctly unless both NetStorage and the unzip program on the workstation use the correct encoding. By default, NetStorage uses the default JVM encoding.

Resolution

To have NetStorage use a ZIP encoding based on each browser's Accept-Language setting, use the ZipEncoding setting in the following file:
 
/opt/novell/netstorage/webapp/WEB-INF/classes/Settings.properties
 
An example is as follows:
 
ZipEncoding = en;ASCII,ja;Shift_JIS,fr_CA;ibm850
 
This example will tell NetStorage to encode the filenames using ASCII for English, Shift_JIS for Japanese, and ibm850 for French Canadian browsers. NetStorage only matches the first language listed in the browsers language preference list.  Any changes to the Settings.properties file will require a restart of Tomcat and Apache
 
rcapache2 restart
rcnovell-tomcat5 restart