You can easily switch command line's encoding to utf8 using chcp 65001
I just checked and at least German umlauts were displayed correctly, using default codepage 850 they did show up as mojibake.
@Christian: BaseX client crashes in svn head when querying XQUERY 'ä' using utf8, not in 65001 - as querying a database containing umlauts didn't crash the client, it seems to be an error in proceeding the input? Jens Erat » web: www.jenserat.de » email: jens.erat@uni-konstanz.de » phone: 0151 56961126 » weitere und aktuelle Kontaktmöglichkeiten: www.jenserat.de/kontakt
Am 27.01.2011 um 18:23 schrieb Christian Grün:
I'm on windows 7... I tried cmd /U with java -Dfile.encoding=UTF8, but this does not work...
Hm, this is indeed a general terminal issue, which can't be solved from within BaseX. Instead, you could change the output encoding for XQuery results to match the console encoding. An example:
basex -sencoding=850 YourQuery.xq
…or (using the console mode)…
BaseX 6.5.1 [Standalone] Try "help" to get more information.
set serializer encoding=850
SERIALIZER: encoding=850
run YourQuery.xq
....
Hope this helps, Christian _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk