Permalink
Browse files

ignore lack of utf-8 if no encoding support:

  • Loading branch information...
1 parent 2cb3c3c commit 8730a408119f6350d2f77be89ac90c578f877d0b @ohler55 committed Jul 24, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 ext/ox/sax.c
View
@@ -1226,13 +1226,16 @@ ox_sax_collapse_special(SaxDrive dr, char *str, int line, int col) {
b = ox_ucs_to_utf8_chars(b, u);
#endif
} else {
+ b = ox_ucs_to_utf8_chars(b, u);
+ /*
ox_sax_drive_error(dr, NO_TERM "Invalid encoding, need UTF-8 encoding to parse &#nnnn; character sequences.");
*b++ = '&';
*b++ = '#';
if ('\0' != x) {
*b++ = x;
}
continue;
+ */
}
s = end + 1;
continue;

0 comments on commit 8730a40

Please sign in to comment.