Mercurial > hg > Applications > TreeVNC
changeset 168:2ade64eba46f
change remoteDesktopName's charset type "UTF-8".
author | oc |
---|---|
date | Thu, 19 Jun 2014 19:05:25 +0900 |
parents | 1d3fa20b86bb |
children | 8ab1f6905db4 |
files | src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Thu Jun 19 18:51:06 2014 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ReceiverTask.java Thu Jun 19 19:05:25 2014 +0900 @@ -250,7 +250,7 @@ int length = reader.readInt32(); byte[] initData = new byte[length]; reader.read(initData); - String name = new String(initData, 24, length - 24, "US-ASCII"); + String name = new String(initData, 24, length - 24, "UTF-8"); rfb.getContext().setRemoteDesktopName(name); rfb.getContext().setInitData(initData);