private String getCharacterSet ( final CommandLineCompilerConfiguration compilerConfig ) { final String [ ] args = compilerConfig . getPreArguments ( ) ; String charset = "0" ; for ( final String arg : args ) { if ( "/D_UNICODE" . equals ( arg ) || "/DUNICODE" . equals ( arg ) ) { charset = "1" ; } if ( "/D_MBCS" . equals ( arg ) ) { charset = "2" ; } } return charset ; }
Get character set for Windows API .