Start a new topic
Answered

Generate UTF-8-BOM file

Hello,


As Semarchy xDI doesn't write the BOM when generating a UTF-8 file, is there a way to do it ?


Best Answer

To deal will this need, you just have to add a WriteTxtFile action set on "append before" in order to add the prefix in the file.






Here is the script to add in this action : 


%e(rhino){'\xEF\xBB\xBF'}e(rhino)%


It will add the string "\xEF\xBB\xBF" in the file as the BOM prefix.

1 Comment

Answer

To deal will this need, you just have to add a WriteTxtFile action set on "append before" in order to add the prefix in the file.






Here is the script to add in this action : 


%e(rhino){'\xEF\xBB\xBF'}e(rhino)%


It will add the string "\xEF\xBB\xBF" in the file as the BOM prefix.

Login to post a comment