I have written a simple program that will accept a command line arguements. I am passing Tamil characters as command line arguements. But the output is displayed ???. . I have set . I am sure this is not the correct encoding for Tamil Language. I tried Chinese GB2312 , It works fine.
Please let me know the correct encoding for Tamil Language.
It depends on what encoding the characters are in you're passing to the application. If they are encoded in UTF-8, then that's what the program needs to use to decode them. If they're in GB2312, then that's would it should use. There is no single correct encoding for any language, just more or less commonly used ones, some of which the JDK implements. UTF-8 often works well, but if your input method supports something else that works, great! You're all set.