Jidanni,
echo '<A>你好</A>'|perl -pwle 's![^[:ascii:]]!$&<wbr/>!'|basex -q ' declare option db:parser "html"; declare option output:method "raw"; doc("/dev/stdin")//*:wbr/..'
If you want help, please try to help, too. Your example is not what I would call very helpful; give us at least:
a) a minimized example, b) the returned output, and c) the expected result
declare option output:encoding "RAW"; or "BYTES" or "NONE"
I’m not sure if you will need any output declaration for your query at all; but we first need more details.
http://docs.basex.org/wiki/Serialization it just says "all encodings supported by Java" So one is supposed to look at http://www.google.com/search?q=all+encodings+supported+by+Java
I've added a link. Note, however, that the list is also dependent on the Java VM you are using.
Why doesn't basex have a command that would output the current "all encodings supported by Java" that it is using.
Try this:
basex "Q{java.nio.charset.Charset}availableCharsets()"