AnsweredAssumed Answered

How do I use BE_SetTextEncoding with BE_WriteTextToFile?

Question asked by Elleni on Sep 28, 2018
Latest reply on Oct 1, 2018 by beverly

I need to export the contents of a single field to disk as ASCII. We have some users that are not yet on FM 16+. So, TextEncode will not work.


I have Base Elements' BE_WriteTextToFile working, but can't find the correct structure to get BE_SetTextEncoding function to make that file ASCII. I've tried this script step:


Set variable: $be_export; Value: BE_WriteTextToFile ( $mypath ; myfield ) & BE_SetTextEncoding ( "ASCII" )


Set variable: $be_export; Value: BE_SetTextEncoding ( "ASCII" ) & BE_WriteTextToFile ( $mypath ; myfield )


Which both give me a file in the $mypath location, but it is still UTF, not ASCII.