Where can I find a complete listing of all the character encodings supported by the javac
command?
I have found suggestions of how to specify the encoding that a file uses with the -encoding
flag in other answers, which contain several useful examples of supported encodings encountered commonly in the wild. I think it would also be useful if an exhaustive list was documented somewhere, and I have not found one.
Perhaps it depends on the version of javac
? Perhaps also it coincides completely with the number of encodings that the java standard library has support for? I suppose the first step is to generate a list of encodings which are supported by the library, which has been done, but even if this is done it's not completely clear we'd be left with an exhaustive list.
Each J2SE version will list its supported encoding sets. For example, this show the encoding sets supported by Java SE 7
javac
is the compiler, encoding sets doesn't depend upon compiler version but each release will list its supported encoding sets.Hope this helps!