Unicode File Output

All your suggestions, requests and ideas for future development
Post Reply
noidea
Posts: 2
Joined: 24 Oct 2012, 20:56

Unicode File Output

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Unicode File Output

Post 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).
:idea: Please read the FAQ and How to Request Help.
noidea
Posts: 2
Joined: 24 Oct 2012, 20:56

Re: Unicode File Output

Post 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.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Unicode File Output

Post by rednoah »

Java on Linux? That's always UTF-8 by default as far as I know.
:idea: Please read the FAQ and How to Request Help.
Post Reply