mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-02 11:05:28 -04:00
fixes #537 corrects case-sensitive entity unescape
This commit is contained in:
parent
e0a6c2ef34
commit
e18f42becc
@ -167,7 +167,7 @@ public class XMLTokener extends JSONTokener {
|
||||
// if our entity is an encoded unicode point, parse it.
|
||||
if (e.charAt(0) == '#') {
|
||||
int cp;
|
||||
if (e.charAt(1) == 'x') {
|
||||
if (e.charAt(1) == 'x' || e.charAt(1) == 'X') {
|
||||
// hex encoded unicode
|
||||
cp = Integer.parseInt(e.substring(2), 16);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user