Platforms to show: All Mac Windows Linux Cross-Platform

/Util/Unicode String Stuff


Required plugins for this example: MBS Util Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Util/Unicode String Stuff

This example is the version from Sun, 17th Mar 2012.

Project "Unicode String Stuff.xojo_binary_project"
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control os Inherits Label
ControlInstance os Inherits Label
End Control
Control oi Inherits Label
ControlInstance oi Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control us Inherits Label
ControlInstance us Inherits Label
End Control
Control ui Inherits Label
ControlInstance ui Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control ns Inherits Label
ControlInstance ns Inherits Label
End Control
Control ni Inherits Label
ControlInstance ni Inherits Label
End Control
Control uh Inherits Label
ControlInstance uh Inherits Label
End Control
EventHandler Sub Open() dim a,b,c as string a= Hallo ä" // <-- CONVERTED b=UnicodeStringMBS(a) c=NativeStringMBS(b) os.text=a oi.text="Len: "+str(len(a))+", Lenb: "+str(lenb(a))+", Encoding: "+hex(GetEncodingOfStringMBS(a)) us.text=b ui.text="Len: "+str(len(b))+", Lenb: "+str(lenb(b))+", Encoding: "+hex(GetEncodingOfStringMBS(b)) uh.text=hexer(b) ns.text=c ni.text="Len: "+str(len(c))+", Lenb: "+str(lenb(c))+", Encoding: "+hex(GetEncodingOfStringMBS(c)) End EventHandler
Function hexer(s as string) As string dim l,i as integer dim t as string l=lenb(s) for i=1 to l t=t+hex(ascb(midb(s,i,1))) if i<l then t=t+", " end if next return t End Function
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...