Jump to content
Sign in to follow this  

Export as SQL and the pesky ( Char ( 65279) or \x{FEFF} or <U+FEFF> ) BOM character

Recommended Posts


If you've ever been stuck with unwanted invisible unicode BOM characters inside your List, there is a workaround:

The zero width no-break space (BOM character) can be represented as:


Char ( 65279 ) or

\x{FEFF} or




The BOM character may appear when you export your list, regardless of the TextEncode/LineEndings you selected.  In order to avoid this pesky character entering your exported file (in the wrong position), specify _ENC at the end of the filename:


Set Field [ YourContainer ; TextEncode ( $q ; "utf-8" ; 1 ) ]

Export Field Contents [ YourContainer ; "YourExportedFile_ENC.sql" ; Automatically open ; Create folders: Off ]


Hope this is useful to others!

Share this post

Link to post
Share on other sites
2 hours ago, Quito said:

specify _ENC at the end of the filename

Are you suggesting that changing the file name affects the file's contents? I doubt that very much.

Share this post

Link to post
Share on other sites

I haven't found another explanation.  If the filename ends in, for example, _ASG.sql, the BOM character appears on every line in the list.  I've even tried using SUBSTITUTE and LEFT to nab the BOM character.  Nothing else works.



Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

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