RichText.ReadRTF
----------------

Loads RTF text as rich text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RichText](component_RichText.md) | [5.2](newinversion52.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "RichText.ReadRTF"; RTF { ; Encoding } ) 

**MBS**( **"RichText.ReadRTF";** /\* Loads RTF text as rich text. \*/  
**$RTF**; /\* The rtf text to load. \*/   
**$Encoding**) /\* Optional; The text encoding for text parameter.   
Default is native.e.g. UTF8 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| RTF | The rtf text to load. |  |  |
| 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](https://www.monkeybreadsoftware.com/filemaker/faq.shtml). | UTF8 | Optional |

### Result

Returns OK or error.

### Description

Loads RTF text as rich text.  
Warning: The plugin can only read/write the styles/formats which Apple supports for their cocoa framework.  
### Examples

Convert RTF to formatted text:

 Let ( \[   
r = MBS ( "RichText.ReadRTF"; $rtf );   
o = MBS ("[RichText.FormattedText](RichTextFormattedText.md)");  
r = MBS ( "[RichText.Release](RichTextRelease.md)" )  
\]; o )  
### See also

- [RichText.FormattedText](RichTextFormattedText.md)
- [RichText.ReadFile](RichTextReadFile.md)
- [RichText.ReadHTML](RichTextReadHTML.md)
- [RichText.ReadText](RichTextReadText.md)
- [RichText.ReadURL](RichTextReadURL.md)
- [RichText.Release](RichTextRelease.md)

### Blog Entries

- [MBS FileMaker Plugin, version 5.2pr8](https://www.mbsplugins.de/archive/2015-07-24/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 23th July 2015 , last changed 14th August 2017

  
[RichText.ReadHTML](RichTextReadHTML.md) - [RichText.ReadText](RichTextReadText.md)

[HTML Version](RichTextReadRTF.shtml)