Skip to content

Commit

Permalink
Parse UTF-8 arguments
Browse files Browse the repository at this point in the history
Simple fix to enable passing UTF-8 on commandline (with properly set up locale of course). Before all multibyte UTF-8 characters were garbled. Due to UTF-8 ASCII back-compat this should produce no ill effects..
  • Loading branch information
lauri-elevant authored and denji committed Jul 21, 2015
1 parent a71d719 commit 8fa9545
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public void run() {

byte[] b = new byte[(int) bytesToRead];
sockin.readFully(b);
String line = new String(b, "US-ASCII");
String line = new String(b, "UTF-8");

switch (chunkType) {

Expand Down

0 comments on commit 8fa9545

Please sign in to comment.