rem:  sfile.append(profileName.value); 
add: sfile.appendUnicode(profileName.value); 
context: function updateProfileName(){  const nsILocalFile = Components.interfaces.nsILocalFile;   const nsILocalFile_PROGID = "component://mozilla/file/local";  var profileName = document.getElementById( "ProfileName" );  var folderDisplayElement = document.getElementById( "ProfileDir" );  var rootFolder = folderDisplayElement.getAttribute( "rootFolder" );  try {    var sfile = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile);     if ( sfile ) {      // later change to       // sfile.initWithUnicodePath(rootFolder);      sfile.initWithPath(rootFolder);    }    // later change to     // sfile.appendUnicode(profileName.value);    sfile.append(profileName.value);        clearFolderDisplay();    // later change to     // var value = document.createTextNode( sfile.unicodePath );    var value = document.createTextNode( sfile.path );    folderDisplayElement.appendChild( value );  }  catch(e) {  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/caa21a1ca9af79e32753a5f8cb969e9eaf2bc3d2/newProfile1_2.js/clean/profile/resources/content/newProfile1_2.js