I have a very large Java program that needs to default to UTF-8 encoding. When I run it in eclipse, I can just change the default character encoding to UTF-8 in Run Configurations, but the encoding is something else whenever I export the code as a runnable jar rendering the text unreadable. Is there a way to set the default encoding when compiling a jar? My program reads from 20+ files, so it would be inefficient to specify character encoding every time I read or write (although possible if there is no other way). Thank you!