Browse Source

Merge pull request #12146 from kkruups/kkruups-dev1

Kkruups dev1
Mr.doob 8 years ago
parent
commit
8325386e92
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/libs/msgpack-js.js

+ 1 - 1
examples/js/libs/msgpack-js.js

@@ -87,7 +87,7 @@ function utf8Read(view, offset, length) {
     // Two byte character
     // Two byte character
     if ((byte & 0xe0) === 0xc0) {
     if ((byte & 0xe0) === 0xc0) {
       string += String.fromCharCode(
       string += String.fromCharCode(
-        ((byte & 0x0f) << 6) | 
+        ((byte & 0x1f) << 6) | 
         (view.getUint8(++i) & 0x3f)
         (view.getUint8(++i) & 0x3f)
       );
       );
       continue;
       continue;