Page 1 of 1

SplitStr does not accept scandinavian special alphabets

Posted: Wed Jan 30, 2019 12:04 pm
by Bugala
array, c = SplitStr("AmigaOS3öMorphOSöAmigaOS4öWarpOSöAROS", "ö")
For k = 1 To c Do NPrint(array[k - 1])

results in:

Error in line 1 (Unnamed2): Wrong usage/parameters for this command!
Read the documentation!

Re: SplitStr does not accept scandinavian special alphabets

Posted: Sat Feb 02, 2019 12:35 pm
by airsoftsoftwair
Yes, this is a known limitation. SplitStr() currently needs a single byte as a separator and Scandinavian characters will be two bytes in UTF-8. As a workaround, you could switch to ISO 8859-1 mode. Then they should work.

Re: SplitStr does not accept scandinavian special alphabets

Posted: Mon Feb 04, 2019 5:30 pm
by airsoftsoftwair

Code: Select all

- Fix: SplitStr() didn't work with UTF-8 characters that contained more than one byte