Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  


Read rich text from text.

Component Version macOS Windows Linux Server iOS SDK
RichText 4.4 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "RichText.ReadText"; text { ; Encoding } )   More


Parameter Description Example Flags
text The text for the text file. "Hello World"
Encoding The text encoding for text parameter.
Default is native.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.
UTF8 Optional


Returns OK or error.


Read rich text from text.
This is for reading RTF text. Be sure to have right text encoding to preserve special characters.

To read styled text into RichText functions, please use RichText.SetFormattedText.

See also

Example Databases

Blog Entries

Created 24th October 2014, last changed 4th January 2017

RichText.ReadRTF - RichText.ReadURL

Feedback: Report problem or ask question.

MBS Xojo Plugins

Start Chat