# HG changeset patch # User Adam Chlipala # Date 1330807672 18000 # Node ID ae22d1fd9b8025909b21dde1de20850b0393055f # Parent 8c2e8d41a8f27edd029de98bf7a6c51d9aea3715 Pass non-printing characters through unchanged in sqlifyString, to support UTF-8 diff -r 8c2e8d41a8f2 -r ae22d1fd9b80 src/c/urweb.c --- a/src/c/urweb.c Sat Feb 25 15:34:44 2012 -0500 +++ b/src/c/urweb.c Sat Mar 03 15:47:52 2012 -0500 @@ -2429,7 +2429,7 @@ s2 += 4; } else - uw_error(ctx, FATAL, "Non-printable character %u in string to SQLify", c); + *s2++ = c; // I hope this is safe to do... don't know how to support UTF-8 outside Postgres otherwise! } }