summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsamhed <samuel@cendio.se>2014-03-14 13:44:10 +0100
committersamhed <samuel@cendio.se>2014-03-14 13:44:10 +0100
commit6227a91c017f2d8e3deb03ece1eca082b336ef52 (patch)
tree9679b7ed298294895b615b7590c43b0a9df3f4a3
parentf1e6daf3c8fb4abd1d7090fb7c526a034449e30d (diff)
downloadnovnc-6227a91c017f2d8e3deb03ece1eca082b336ef52.tar.gz
Decode from UTF-8 to allow unicode characters in the connection name
-rw-r--r--include/rfb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rfb.js b/include/rfb.js
index c9fd92a..9dad36a 100644
--- a/include/rfb.js
+++ b/include/rfb.js
@@ -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")