Commencer un nouveau sujet
Répondu

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 ?


Meilleure réponse

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 commentaire

Réponse

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.

Connexion pour poster un commentaire