Am 13.02.2019 um 03:48 schrieb Fred Engst:
I know you guys are very busy and I don’t want to bother you with every question that I have.
To the contrary, error reports are very useful for the improvement of gretl!

? string teststring[1] = "Γ"


Error executing script: halting
I can confirm the error, and also that it works with an ASCII character instead.

1.Those non-ascii character were pasted onto the scrip, for I can’t even enter them directly.	
I have no problems entering non-ASCII (and non-latin, too) characters into the gretl script editor. I think this is an OS issue of getting the keyboard layouts etc.

2. It seems that gretl handles the non-ascii character fine internally, but not on a scrip.

Anyway to work around this?
Yes, avoid the string indexing on the left-hand side of the = sign (not pretty, but it works here):
# assign unicode text
string teststring = "ΑΒΓΔ"
string test = teststring[1]
print test
teststring = "Γ" ~ teststring[2:strlen(teststring)]
print teststring

p.s. I’m not even sure the email that you see will show the right characters. Those are the first 4 characters of the Greek code page, i.e. UTF-8 CE91, CE92, CE93, & CE94.
That's thoughtful, but I had no problems.

thanks,
sven