Currently, Codec.string.encode will send any string passed to it to Isabelle.
However, Isabelle can only handle character codes 0-255. Anything else leads to a Chr exception being thrown in Isabelle. (By function Char.chr.)
For example system.invoke(Operation.Hello)("α") will fail.
I think Codec.string.encode should already raise an exception if the input contains chars >=256 since otherwise one gets a hard to track down exception (The exception from Char.chr comes without any information why this exception is raised.)
Currently, Codec.string.encode will send any string passed to it to Isabelle.
However, Isabelle can only handle character codes 0-255. Anything else leads to a Chr exception being thrown in Isabelle. (By function Char.chr.)
For example system.invoke(Operation.Hello)("α") will fail.
I think Codec.string.encode should already raise an exception if the input contains chars >=256 since otherwise one gets a hard to track down exception (The exception from Char.chr comes without any information why this exception is raised.)