To be perfectly honest I can't remember. I may have taken it from somewhere and formatted it to the way I do things.
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
On Fri, 3 Aug 2018, at 2:51 PM, Paul H. Tarver wrote:
> Thanks Alan! I'll give this a try.
>
> BTW, I like to note the original source in my comments, so do I get to
> credit you for this code?
>
> Paul
>
> -----Original Message-----
> From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Alan
> Bourke
> Sent: Thursday, August 02, 2018 4:25 AM
> To: profoxtech@leafe.com
> Subject: Re: Determining Text File Encoding
>
> On Wed, 1 Aug 2018, at 7:00 PM, Paul H. Tarver wrote:
> > Ok, this may be a dumb question, but is there a reliable and easy way to
> > detect and determine the file encoding on simple text files?
> >
> >
> >
>
> I use the code at the link below, which seems to work OK.
>
>
https://pastebin.com/1wzftPUg
>
> --
> Alan Bourke
> alanpbourke (at) fastmail (dot) fm
>
[excessive quoting removed by server]