From 6227a91c017f2d8e3deb03ece1eca082b336ef52 Mon Sep 17 00:00:00 2001 From: samhed Date: Fri, 14 Mar 2014 13:44:10 +0100 Subject: [PATCH] Decode from UTF-8 to allow unicode characters in the connection name --- include/rfb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rfb.js b/include/rfb.js index c9fd92a9..9dad36aa 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")