Repository

Handle bricks with multiple UTF16 letters

Parent commits : c8ea1e998ca30a52dc97fa9f5d2639e4c12277df,
Children commits :

By Laurent Defert on 2015-05-29 10:58:26
Handle bricks with multiple UTF16 letters

Difference with parent commit c8ea1e998ca30a52dc97fa9f5d2639e4c12277df
Files modified:
js/loading.js
--- 
+++ 
@@ -52,8 +52,12 @@
 
 function decodeStr(str) {
     if (str.indexOf('0x') != -1) {
-        str = parseInt(str);
-        str = toUTF16(str);
+        var chars = str.split(" ");
+        str = "";
+        for (var i in chars) {
+            var _str = parseInt(chars[i]);
+            str += toUTF16(_str);
+        }
     }
     return str;
 }