Fixed: [JSON backslash string decoding/encoding not correct](https://github.com/clicon/clixon/issues/453)
Added unicode BMP support for JSON strings Test: encoding/decoding tests for UTF-8
This commit is contained in:
parent
1a43a32770
commit
45f41e3e4d
12 changed files with 254 additions and 35 deletions
|
|
@ -212,6 +212,19 @@ EOF
|
|||
)
|
||||
expecteof "$clixon_util_xml -o" 0 "$XML" '^<bk:book xmlns:bk="urn:loc.gov:books" xmlns:isbn="urn:ISBN:0-395-36341-6"><bk:title>Cheaper by the Dozen</bk:title><isbn:number>1568491379</isbn:number></bk:book>$'
|
||||
|
||||
XML=$(cat <<EOF
|
||||
<?xml version="1.0" encoding='utf-8'?>
|
||||
<text>
|
||||
Theodoric the bold
|
||||
chief of sea-warriors
|
||||
ruled over the shores of the Hreiðsea
|
||||
</text>
|
||||
EOF
|
||||
)
|
||||
|
||||
new "utf-8 string"
|
||||
expecteof "$clixon_util_xml -o" 0 "$XML" "^ruled over the shores of the Hreiðsea$"
|
||||
|
||||
rm -rf $dir
|
||||
|
||||
new "endtest"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue