Page 1 of 1

Umlaut in TreeView node/leaf id does not work on MorphOS with DoMethod "Open"

Posted: Sat Mar 20, 2021 11:57 pm
by amiga23
On MorphOS, if there is an Umlaut in the ID of a TreeView, trying to open that ID (e.g. "Prüfung") leads to error message:
Cannot find MOAI object "Pr?ung"!

Code: Select all

    Case "Active":                                                                                                                                   
      Switch msg.Id
      Case "tv":
        Local found, t = moai.DoMethod("tv", "GetEntry", "Active", "Active")
        If t.Node
          moai.DoMethod( "tv", "Open", t.id )
        EndIf
This works fine on Linux.

Re: Umlaut in TreeView node/leaf id does not work on MorphOS with DoMethod "Open"

Posted: Sun Mar 21, 2021 1:51 pm
by airsoftsoftwair
That's more of a feature than a bug. Even though it's probably not documented anywhere, IDs shouldn't really use umlauts but just ASCII characters.