java - How do I change the encoding of my jar file to manage characters such as "█▓▒ CRIT! ░░╚╡▌▌╞╗░░"? -


edited

hey guys.

my code using pircbot send irc messages twitch.tv.

the messages include characters such '█▓▒ crit! ░░╚╡▌▌╞╗░░'

example output code: sendmessage("#twitchraidstwitch", "/me █▓▒ crit! ░░╚╡▌▌╞╗░░");

so these characters displayed '?' in eclipse. didn't work until changed window -> preferences -> text file encoding us-ascii. (though i've learned these characters aren't ascii.)

when export project jar , try run in cmd, characters '?'.

how got getting work in cmd?

thanks!

ok got work.

i used setencoding("utf-8"); score_under suggested. didn't change didn't hurt either.

i launched java -dfile.encoding="utf-8" -jar jarfile.jar , did trick.

i figured out utf-8 works on eclipse fails work exported jar


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -