[antlr-interest] No viable for alternative with ISO-LATIN-1 non-breaking space character

Jim Idle jimi at temporal-wave.com
Mon Feb 18 14:39:40 PST 2008


The encoding is just the usual Java defaults as ANTLRFileStream just
uses standard Java IO routines and passes on what you give it. If you
give it nothing, then you get the Java default.

 

Jim

 

 

 

From: Darach Ennis [mailto:darach at gmail.com] 
Sent: Monday, February 18, 2008 2:38 PM
To: Jim Idle
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] No viable for alternative with ISO-LATIN-1
non-breaking space character

 

Hi Jim.

Bingo! Thank you! You were very close:

new ANTLRFileStream("/tmp/nbsp.txt", "ISO-8859-1")

The non-breaking-space is encoding specific and my input stream is
iso-8859-1
so this should be iso-8859-1 in my case. What is the default encoding in
ANTLRInputStream?
Is it UTF-8 or the system encoding? The javadoc could mention what the
default is.



 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080218/b181f19d/attachment.html 


More information about the antlr-interest mailing list