sqlite3-xconv/test

16 lines
273 B
Plaintext
Raw Normal View History

2017-03-12 16:49:47 +00:00
#!/mod/bin/jimsh
source /mod/webif/lib/setup
require hexdump
set s "home made p\303at\302e"
hexdump $s
set db [sqlite3.open ":memory:"]
$db extension /mod/lib/sql/libqxconv.so
set ret [$db query {select xconv('%s') as xconv} $s]
lassign [lindex $ret 0] x t
hexdump $t