[M3devel] Widechars

Martin Bishop martinbishop at bellsouth.net
Tue Jan 6 21:50:56 CET 2009


I'm playing around with WIDECHARS, and having some trouble.

VAR wide := ARRAY OF WIDECHAR {'\x304A', '\x306F', '\x3088', '\x3046'};
    s := Text.FromWideChars(wide);

I get these errors from the compiler:
 "../Length.m3", line 5: missing closing quote on character literal
 "../Length.m3", line 5: syntax error: missing '}' (4)
 "../Length.m3", line 5: missing closing quote on character literal
 "../Length.m3", line 5: missing closing quote on character literal
 "../Length.m3", line 5: missing closing quote on character literal
 "../Length.m3", line 5: missing closing quote on character literal
 "../Length.m3", line 5: missing closing quote on character literal
 "../Length.m3", line 5: missing closing quote on character literal
 "../Length.m3", line 5: missing closing quote on character literal
 9 errors encountered

It seems like it's reading '\x304A' as '\x30' (which is why it says
"syntax error: missing '}' (4)")

Do I need some special literal letter or something?





More information about the M3devel mailing list