PaulIf it would help, I could make a very crude Rebol command line script to read a file, guess the encoding and print the encoding. It would give a crude way to compare the results against your current routine.Rebol is easy to download and doesn't require installation but is 32-bit only so the macOS version won't run on macOS Catalina.PeterPS Once again sorry for the top posting. -------- Original message --------From: Paul Dupuis via use-livecode <use-livecode@lists.runrev.com> Date: 21/03/2020 22:11 (GMT+08:00) To: use-livecode@lists.runrev.com Cc: Paul Dupuis <p...@researchware.com> Subject: Re: Guessing the encoding of a test file... On 3/20/2020 8:49 PM, peterwawood via use-livecode wrote:> PaulI wrote a simple function to guess the encoding of a file but in Rebol not LiveCode. I'm not sure how it compares with your current function in terms of accuracy. It is being used by a company which does a lot of text processing. (Though I don't know if that is a good reccomendation or not). The method I used is explained in the brief documentation -http://www.rebol.org/documentation.r?script=str-enc-utils.r]. The rules could be used to create a LiveCode function.PeterPS Sorry for top posting, I'm replying from a mobile app.Peter,Thank you. While I would have loved to see this as a LC script for comparison to my own routine, this is the sort of replies I was looking for. Other routines I could compare mine to for seeking possible improvements in my own code._______________________________________________use-livecode mailing listuse-livecode@lists.runrev.comPlease visit this url to subscribe, unsubscribe and manage your subscription preferences:http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Guessing the encoding of a test file...
peterwawood via use-livecode Sat, 21 Mar 2020 16:05:08 -0700
- RE: Guessing the en... Ralph DiMola via use-livecode
- Re: Guessing the en... Mark Wieder via use-livecode
- Re: Guessing th... doc hawk via use-livecode
- Re: Guessing the encoding of a test file.... Ben Rubinstein via use-livecode
- Re: Guessing the encoding of a test file.... peterwawood via use-livecode
- Re: Guessing the encoding of a test ... Paul Dupuis via use-livecode
- Re: Guessing the encoding of a test file.... Quentin Long via use-livecode
- Re: Guessing the encoding of a test ... Paul Dupuis via use-livecode
- Re: Guessing the encoding of a t... Mark Waddingham via use-livecode
- Re: Guessing the encoding of... Paul Dupuis via use-livecode
- Re: Guessing the encoding of a test file.... peterwawood via use-livecode