12 Jan 2011, 09:37
Generic-user-small

gglazar (1 post)

Hi!

I’m using ANTLRWorks 1.4.
I have problem with recognize a special Unicode characters like:
“Č” \u010C
“č” \u010D
“Š” \u0160
“š” \u0161
“Ž” \u017D
“ž” \u017E

When i wrote the rule: UNICODE:(’\u010D’|’\u0161’);
and then
prog: (UNICODE); The program dont recognize those characters.(input is: č š ) Why not?
Please help me!

Thanks!

04 Mar 2011, 23:31
Australia-3_pragsmall

Terence Parr (33 posts)

Hi. this is probably an issue with the encoding you specified on the input file. Have you set the encoding to UTF-8 or something like that when you do a file open?
Terence

  You must be logged in to comment