encodedParam = escape(converFromUnicode(charset, param)); 
encodedParam = escape(convertFromUnicode(charset, param)); 
function getShortcutOrURI(aURL, aPostDataRef) {  var shortcutURL = null;  var keyword = aURL;  var param = "";  var searchService = Cc["@mozilla.org/browser/search-service;1"].                      getService(Ci.nsIBrowserSearchService);  var offset = aURL.indexOf(" ");  if (offset > 0) {    keyword = aURL.substr(0, offset);    param = aURL.substr(offset + 1);  }  var engine = searchService.getEngineByAlias(keyword);  if (engine)    return engine.getSubmission(param, null).uri.spec;  try {    var shortcutURI = PlacesUtils.bookmarks.getURIForKeyword(keyword);    shortcutURL = shortcutURI.spec;    aPostDataRef.value = PlacesUtils.getPostDataForURI(shortcutURI);  } catch(ex) {}  if (!shortcutURL)    return aURL;  var postData = "";  if (aPostDataRef && aPostDataRef.value)    postData = unescape(aPostDataRef.value);  if (/%s/i.test(shortcutURL) || /%s/i.test(postData)) {    var charset = "";    const re = /^(.*)\&mozcharset=([a-zA-Z][_\-a-zA-Z0-9]+)\s*$/;    var matches = shortcutURL.match(re);    if (matches)      [, shortcutURL, charset] = matches;    else {      //XXX Bug 317472 will add lastCharset support to places.    }    var encodedParam = "";    if (charset)      encodedParam = escape(converFromUnicode(charset, param));    else // Default charset is UTF-8      encodedParam = encodeURIComponent(param);    shortcutURL = shortcutURL.replace(/%s/g, encodedParam).replace(/%S/g, param);    if (/%s/i.test(postData)) // POST keyword      aPostDataRef.value = getPostDataStream(postData, param, encodedParam,                                             "application/x-www-form-urlencoded");  }  else    aPostDataRef.value = null;  return shortcutURL;}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/22c21d3bb8bdb190b17ecf1c378c8c94634456a9/browser.js/buggy/browser/base/content/browser.js