grammatica-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Grammatica-users] tokens with unicode characters


From: Per Cederberg
Subject: Re: [Grammatica-users] tokens with unicode characters
Date: Wed, 23 Jan 2013 01:02:25 +0100

Not at my computer right now, but have you tried editing the grammar file as UTF-8 and defining the token as:

DEGREE = "°"

Could also be that Java on your computer uses a different encoding from your test file... Come to think of it, that's probably it. 

Cheers,

/Per

Den tisdagen den 22:e januari 2013 skrev Bauer, Thomas:
Hi There,

i fail to recognize a token like '°'. grammatica's token test outputs "unexpected character '┬'". I tried

%header%
%tokens%
DEGREE                    = <<\u00B0>>
%productions%

but this does not work. Any ideas?

regards
Thomas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]