how to set run console encoding ius

i used mac osx but i have problem with text encoding in intelliJ IDEA 9. my file encoding is UTF8 i try to print but the output is ??? ???? how can i fix it thanks.

4 comments
Comment actions Permalink

You can define IDE encoding via 'Project Settings -> File Encodings'.

Alternatively, it's possible to define custom encoding for a file via 'Main Menu -> File -> Change encoding to' (the same cane be done via click on file encoding displayed at the bottom status bar).

0
Comment actions Permalink

I'm facing the same issue. The file encoding is good with me but I want to run it with different encoding e.g. *.java files are encoded/compiled in UTF-8 but running them with the system default encoding.

how can i do this?

thanks

0
Comment actions Permalink

Did you try specifying the encoding as VM paramter in the run configuration yet? I believe you can specify it with -Dfile.encoding=<encoding>.

0
Comment actions Permalink

Thanks Dirk. It works with me

0

Please sign in to leave a comment.