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.

use Export Field Contents script step to save a UTF-8 encoded file?

Featured Replies

  • Newbies

I am trying to use the "Export Field Contents" script step, but when I output a file using this step I get one that is not encoded correctly. (To be specific, my web browser can't execute it properly).

I've diagnosed the problem to the file not being encoded correctly-- when I re-save the file as Unix encoded UTF-8, it executes fine.

Does anyone know of a way in FileMaker I can save a file as UTF-8?

Yes, FileMaker uses utf-16 with that step, no other option. I imagine that will not be a problem sometime in the future; but for right now it is a problem for web browsers.

One thing you can do is use Export as XML, with a simple xsl stylesheet that just gets that one field. The default for xml export is utf-8, and you can further specify it (or another encoding) in the stylesheet.

Yes, it's a bit annoying, since an export is a "found set" kind of thing. You can open a new window, just get that one record, export, then close it.

Another possibility would be write out a file using AppleScript (optionally with command line), which should also be compatible.

This example was originally posted by Bruce Robertson:

--tell application "FileMaker Pro Advanced"

copy cell "filename" of current record to fileName

copy cell "Text_" of current record to exportMe

do shell script "echo -n " & quoted form of exportMe & " > ~/desktop/" & quoted form of fileName

--end tell

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.