]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Decode from UTF-8 to allow unicode characters in the connection name
authorsamhed <samuel@cendio.se>
Fri, 14 Mar 2014 12:44:10 +0000 (13:44 +0100)
committersamhed <samuel@cendio.se>
Fri, 14 Mar 2014 12:44:10 +0000 (13:44 +0100)
include/rfb.js

index c9fd92a9ca52f30c18c312119331fb3b74325106..9dad36aa6bf213de878b8e38376c469fb85e782e 100644 (file)
@@ -923,7 +923,7 @@ init_msg = function() {
 
         /* Connection name/title */
         name_length   = ws.rQshift32();
-        fb_name = ws.rQshiftStr(name_length);
+        fb_name = decodeURIComponent(escape(ws.rQshiftStr(name_length)));
         conf.onDesktopName(that, fb_name);
         
         if (conf.true_color && fb_name === "Intel(r) AMT KVM")