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.

Export Field Contents as UTF8?

Featured Replies

I have a global field that I'm trying to export into a file using Export Field Contents but FileMaker is creating a UTF16 encoded file. I need a UTF8 encoded file. Is there a system or FileMaker setting somewhere that can change this default?

I'm on a Mac running 10.6

Thanks,

No, it's always UTF-16. See here for some alternatives:

http://fmforums.com/forum/showtopic.php?tid/183607/post/235940/#235940

  • Author

The applescript looks promising but I haven't ran an applescript from within FileMaker before. For the following code, how do I export a global field called g_field to a file called text.txt? I'm not sure where to put the actual field and filename.

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

I believe that could be done by:

copy cell "g_field" of current record to myText

do shell script "echo -n " & quoted form of myText & " > ~/desktop/text.txt"

copy cell "g_field" of current record to myText

do shell script "echo -n " & quoted form of myText & " > ~/desktop/text.txt"

A FileMaker script variation that requires less AppleScript is...

Copy[select; YourTable::g_field]

Perform AppleScript["do shell script "pbpaste > ~/desktop/text.txt""]

The downside is that you do need to perform this on a layout that contains the field.

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.