Does ANTLR for Java support MBCS?

255 Views Asked by At

I searched and couldn't find much about it. We need to provide the most general support for encodings and such and want to make sure ANTLR is going to be able to handle anything we throw at it.

2

There are 2 best solutions below

0
On BEST ANSWER

Java VM uses 16 bit character encoding, so MBCS streams must be converted as they are read into the VM. That's relatively independent of ANTLR.

0
On

There seems to be some talk about ANTLRInputStream on stackoverflow (found by looking at ANTLR + unicode in google). Is that enough support for multi-byte-character-set for you?