kash
kash copied to clipboard
Parsing special characters
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
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 ë