Re: [code] Re: [textadept] About the BOM

From: Mitchell <m.att.foicica.com>
Date: Thu, 8 Aug 2013 17:54:02 -0400 (Eastern Daylight Time)

Hi Richard,

On Mon, 5 Aug 2013, Richard Philips wrote:

> Ok, something which works:
>
> in my init.lua, I put:
>
> -- start
>
>
> events.connect(events.FILE_BEFORE_SAVE, function() buffer.encoding_bom =
> "" end)
>
>
> -- end
>
>
>
> Is this an acceptable way ?
>
> If it is, I write something in the wiki about it.

Yes that seems fine to me as long as you are sure you want to strip the
BOM from existing files; they may no longer be readable in the original
editor they were created in.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 08 Aug 2013 - 17:54:02 EDT

This archive was generated by hypermail 2.2.0 : Fri 09 Aug 2013 - 06:42:03 EDT