Bug 423085 - restore from JSON, Japanese is garbled. Patch by KUROSAWA, Takeshi <taken.spc@gmail.com>, r=me.
authormozilla.mano@sent.com
Sun, 16 Mar 2008 23:37:04 -0700
changeset 13165 100062f1913dc24a4d66c568305bffc68cca30a5
parent 13164 41cb077459799ee1596a3590acdd8cd7389a9924
child 13166 2c777a694590d67643c02f5678f9fbebaa150092
push idunknown
push userunknown
push dateunknown
reviewersme
bugs423085
milestone1.9b5pre
Bug 423085 - restore from JSON, Japanese is garbled. Patch by KUROSAWA, Takeshi <taken.spc@gmail.com>, r=me.
toolkit/components/places/src/utils.js
--- a/toolkit/components/places/src/utils.js
+++ b/toolkit/components/places/src/utils.js
@@ -1173,17 +1173,17 @@ var PlacesUtils = {
    *                  method of nsIOutputStream. The caller is responsible for
    *                  closing the stream.
    */
   serializeNodeAsJSONToOutputStream:
   function PU_serializeNodeAsJSONToOutputStream(aNode, aStream) {
     var self = this;
     
     function addGenericProperties(aPlacesNode, aJSNode) {
-      aJSNode.title = unescape(encodeURIComponent(aPlacesNode.title));
+      aJSNode.title = aPlacesNode.title;
       var id = aPlacesNode.itemId;
       if (id != -1) {
         aJSNode.id = id;
 
         var parent = aPlacesNode.parent;
         if (parent)
           aJSNode.parent = parent.itemId;
         var dateAdded = aPlacesNode.dateAdded;