Transcoding of string literals to other encodings at compile time would enable writing text in a convenient source encoding that would be available at run-time in some other statically known encoding with no run-time overhead. This might be useful, for example, to produce strings in Java's modified UTF-8 for use in JNI applications.
Transcoding of string literals to other encodings at compile time would enable writing text in a convenient source encoding that would be available at run-time in some other statically known encoding with no run-time overhead. This might be useful, for example, to produce strings in Java's modified UTF-8 for use in JNI applications.