kash icon indicating copy to clipboard operation
kash copied to clipboard

Parsing special characters

Open mukoki opened this issue 6 years ago • 1 comments

Still with the example of the first page First call using hi("Michaël") is maybe acceptable (may depend on the codepage used by the console ?), but the second one using the script "a", is not even parsed. These example have been produced with Windows + GitBash. Sorry if this is a windows console problem rather than a kash one.

build/libs$ hi("Michaël")
hi("Michaël")Hello, Micha?l
build/libs$ a Michaël
Exception: Lexical error at line 1, column 8.  Encountered: "\u2030" (8240), after : ""
Couldn't evaluate a Micha?l: Unresolved reference: a
Unresolved reference: a

mukoki avatar Jul 29 '19 20:07 mukoki

first problem using hi() function is probably a console codepage problem : windows does not display the ë correctly, but linux does.

second problem using script "a" as a command throws the same error either with windows and linux if argument includes a special character like ë

mukoki avatar Aug 08 '19 20:08 mukoki