Skip to content

Commit

Permalink
fixed files form Lang #28
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 7fdbbc8 commit 16aa9b4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ public int translate(CharSequence input, int index, Writer out) throws IOExcepti
return 0;
}

if(entityValue > 0xFFFF) {
char[] chrs = Character.toChars(entityValue);
out.write(chrs[0]);
out.write(chrs[1]);
} else {
out.write(entityValue);
}
return 2 + (end - start) + (isHex ? 1 : 0) + 1;
}
return 0;
Expand Down

0 comments on commit 16aa9b4

Please sign in to comment.