Page 1 of 1

Unicode File Output

Posted: 24 Oct 2012, 20:59
by noidea
The stdout logging seems to struggle with unicode, replacing accented characters with question marks.

E.g. Y tu mamá también comes out Y tu mam? tambi?n

Re: Unicode File Output

Posted: 25 Oct 2012, 00:55
by rednoah
Yeah, that's cmdline on Windows, pretty shitty.

If you're redirecting output into a file though then you're in luck, just add this option to filebot.cmd:

Code: Select all

-Dfile.encoding=UTF-8
It'll still be gibberish in the cmd window, but if you pipe things into a file and open it with an editor later it'll work (maybe need to switch the editor to read things as UTF-8).

Re: Unicode File Output

Posted: 25 Oct 2012, 01:19
by noidea
Aaah I see, it's Java itself that's defaulting to the wrong encoding. Thanks, that helps a lot.

I was using cygwin over SSH, which ordinarily works fine and so I was caught out when this didn't. The file.encoding option works great.

Re: Unicode File Output

Posted: 25 Oct 2012, 02:03
by rednoah
Java on Linux? That's always UTF-8 by default as far as I know.