]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Force the X-Page-Title value to be treated as UTF-8
[rails.git] / app / assets / javascripts / index.js
index 1f9e6c8916a659e63d5cfacd923c94f27afcf8de..1cbd97f86351e442f210d320e41167c5f42b1969 100644 (file)
@@ -46,7 +46,8 @@
         var content = $(xhr.responseText);
 
         if (xhr.getResponseHeader('X-Page-Title')) {
-          document.title = xhr.getResponseHeader('X-Page-Title');
+          var title = xhr.getResponseHeader('X-Page-Title');
+          document.title = decodeURIComponent(escape(title));
         }
 
         $('head')