rem: attachmentDisplayNameArray[index] = escape(attachment.displayName); 
add: attachmentDisplayNameArray[index] = encodeURI(attachment.displayName); 
context: function SaveAllAttachments(){ try  {   // convert our attachment data into some c++ friendly structs   var attachmentContentTypeArray = new Array();   var attachmentUrlArray = new Array();   var attachmentDisplayNameArray = new Array();   var attachmentMessageUriArray = new Array();   // populate these arrays..   for (index in currentAttachments)   {     var attachment = currentAttachments[index];     attachmentContentTypeArray[index] = attachment.contentType;     attachmentUrlArray[index] = attachment.url;     attachmentDisplayNameArray[index] = escape(attachment.displayName);     attachmentMessageUriArray[index] = attachment.uri;   }   // okay the list has been built...now call our save all attachments code...   messenger.saveAllAttachments(attachmentContentTypeArray.length,                                attachmentContentTypeArray, attachmentUrlArray,                                attachmentDisplayNameArray, attachmentMessageUriArray); } catch (ex) {   dump ("** failed to save all attachments **\n"); }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5e7848db380e8ce2ebad479c6c7e9b171ee816dd/msgHdrViewOverlay.js/buggy/mailnews/base/resources/content/msgHdrViewOverlay.js