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

Discuss GUI programming with the RapaGUI plugin here
Post Reply
amiga23
Posts: 33
Joined: Thu Jan 30, 2014 6:01 pm

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

Post 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.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
Post Reply