Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Convert rtf to plaintext via Filemaker

Featured Replies

Is there a way to natively convert rtf data that has been pasted into a Filemaker text field to be converted to plain text? I have tried the remove formatting and get as text options....neither worked.

I know I can save the original text as plain text and then paste it, but I was trying to eliminate the conversion step.

Thanks

Greg

Removing the formatting using TextStyleRemove () should work.

(I am assuming that by "rtf data" you mean styled text.)

  • Author

Thanks for the tip.....

I've tried that too, but there must be something still left that is not being filtered out.

I have also tried using the filter function and filtered out everything except numbers and text....still does not work as expected. The issue I am fighting is related to text from an email body. I convert all spaces and carriage returns to "%" then I filter everything except numbers, letters and %.....then I replace the % with a space....for some odd reason, spaces seem to disappear on the last step.....the only way they do not is if I paste plain text....then all is well in the routine.

Other ideas?

Thanks

Greg

Paste a copy of the Raw Data before you messed around with it.

Lee

  • Author

Lee

Do you mean paste a copy here? If so, I am not sure I can...there is some personal data in the text. May I contact you back channel Lee?

Thanks

Greg

A file with a sample of the problematic data would be useful.

EDIT: I mean a .fp7 file - pasting it here wouldn't tell much. Delete any sensitive parts, or type over them.

Edited by Guest

Couldn't you remove the personal info? We don't need to see that, we need to see the whitespace characters, and possibly your FileMaker work. Create a small demo file. That shouldn't be difficult.

In fact, first look at it in a real text editor, like (free) TextWrangler:

http://www.barebones.com/products/textwrangler/index.shtml

First, View, Text Display, Show Invisibles.

Then, Window, Palettes, ASCII Table.

Then select the character, and click the Show button.

It could be that what you think is a space is not a space, but some other whitespace character. But if you copy/paste it into a FileMaker Substitute(), it should work.

Though, it does seem weird that you'd lose ALL spaces.

  • Author

Thank all of you for your efforts...I just needed a little time away from Filemaker to clear my brain.

I was missing an error in my script that was parsing the data....

I do appreciate the time and effort on your part. Thanks again.

Best wishes

Greg

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.