Sujet : tdom encoding
De : saitology9 (at) *nospam* gmail.com (saito)
Groupes : comp.lang.tclDate : 17. Dec 2024, 01:01:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjqf00$1c0s9$1@dont-email.me>
User-Agent : Mozilla Thunderbird
I am trying to see why tdom is failing on this json snippet.
package req tdom
set x {{"name":"Jeremi"}}
dom parse -json $x
==> error "JSON syntax error" at position 15
"{"name":"Jeremi <--Error-- "}"
If it doesn't get removed by the newsgroup editors, there is a weird character at the very end of x. It looks almost like "[]" but it is not. When you edit it, it acts as if it has multiple characters in it.
Another problem is that tdom man page talks about a command "dom setResultEncoding ?encodingName?" but trying it results in an unknown command error.