Question: SubString with special characters

Here's another possible bug related to special characters (like ø, æ, å).

SubString considers each of the characters to be consisting of 2 different other ones.

Related to https://www.mapleprimes.com/questions/231765-Special-Characters-In-Maple-Workbook-Code.

with(StringTools)

a := "Øyeblikk"

"Øyeblikk"

(1)

SubString(a, 2 .. ())

"�yeblikk"

(2)

SubString(a, 1 .. ())

"Øyeblikk"

(3)

SubString(a, 3 .. ())

"yeblikk"

(4)

``

Download SubString.mw

Please Wait...