Platforms to show: All Mac Windows Linux Cross-Platform
CheckUTF8MBS(data as ptr, size as Integer, Placeholder as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | String | MBS Util Plugin | 16.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function is more save than simply DefineEncoding as it makes sure the returned text actually is valid UTF-8.
You can replace missing characters with empty text, question mark or any other symbol.
This function is overloaded, so you can directly pass in string, memoryblock or ptr+size.
Checks byte sequence with up to 4 byte long sequences. Does not verify whether code points are valid.
See also:
CheckUTF8MBS(data as string, Placeholder as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | String | MBS Util Plugin | 16.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function is more save than simply DefineEncoding as it makes sure the returned text actually is valid UTF-8.
You can replace missing characters with empty text, question mark or any other symbol.
This function is overloaded, so you can directly pass in string, memoryblock or ptr+size.
Checks byte sequence with up to 4 byte long sequences. Does not verify whether code points are valid.
See also:
CheckUTF8MBS(mem as MemoryBlock, Placeholder as string) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | String | MBS Util Plugin | 16.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
This function is more save than simply DefineEncoding as it makes sure the returned text actually is valid UTF-8.
You can replace missing characters with empty text, question mark or any other symbol.
This function is overloaded, so you can directly pass in string, memoryblock or ptr+size.
Checks byte sequence with up to 4 byte long sequences. Does not verify whether code points are valid.
See also:
- CheckUTF8MBS(data as ptr, size as Integer, Placeholder as string) as string
- CheckUTF8MBS(data as string, Placeholder as string) as string
Blog Entries
- MBS Xojo Plugins, version 21.1pr1
- MBS Xojo plug-ins in version 16.0
- MBS Xojo / Real Studio Plugins, version 16.0pr7
- CheckUTF8MBS function
Xojo Developer Magazine
The items on this page are in the following plugins: MBS Util Plugin.