Skip to content

Commit

Permalink
Merge pull request #260 from christav/dev
Browse files Browse the repository at this point in the history
Table encoding fixes
  • Loading branch information
Chris Tavares committed Feb 26, 2013
2 parents c4268a5 + dcc318c commit 98e2a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ private String encodeNumericCharacterReference(String value) {
}

private boolean isIllegalChar(char c) {
return !(c == 9 || c == 0xA || c == 0xD || (c >= 0x20 && c < 0xD800) ||
(c >= 0xE000 && c < 0xFFFE) || (c >= 0x10000 && c < 0x110000));
return !(c == 9 || c == 0xA || c == 0xD || (c >= 0x20 && c < 0xFFFE));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public void insertEntityEscapeCharactersRoundTripsFromService() throws Exception
.setProperty("test5", EdmType.STRING, "\ub2e2")
.setProperty("test6", EdmType.STRING, " \ub2e2")
.setProperty("test7", EdmType.STRING, "ok \ub2e2")
.setProperty("test8", EdmType.STRING, "\uD840");
.setProperty("test8", EdmType.STRING, "\uD840\uDC00")
;

service.insertEntity(TEST_TABLE_2, insertedEntity);
Expand Down Expand Up @@ -448,7 +448,7 @@ public void insertEntityEscapeCharactersRoundTripsFromService() throws Exception
assertEquals("ok \ub2e2", actualTest7);

String actualTest8 = (String)entity.getPropertyValue("test8");
assertEquals("&#xd840;", actualTest8);
assertEquals("\uD840\uDC00", actualTest8);
}


Expand Down

0 comments on commit 98e2a46

Please sign in to comment.