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.
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).
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.
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).
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
Did you try specifying the encoding as VM paramter in the run configuration yet? I believe you can specify it with -Dfile.encoding=<encoding>.
Thanks Dirk. It works with me