Re: Guessing the encoding of a test file...

2020-03-20 Thread peterwawood via use-livecode
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

Re: Guessing the encoding of a test file... [OT]

2020-03-20 Thread doc hawk via use-livecode
On Mar 20, 2020, at 4:04 PM, Mark Wieder via use-livecode wrote: > > Even Morse code got a new character recently. But does livecode support that character? :) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Guessing the encoding of a test file... [OT]

2020-03-20 Thread Mark Wieder via use-livecode
On 3/20/20 1:47 PM, doc hawk via use-livecode wrote: They created a *new* five bit, shifted code, rather than just using Baudot Even Morse code got a new character recently. -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list

RE: Guessing the encoding of a test file... [OT]

2020-03-20 Thread Ralph DiMola via use-livecode
It was essentially Baudot on the way in(some special char diffs) then shifted to numeric on the way out. As I remember the shifted numeric was not any of the existing Baudot variants. Alpha Stock symbols in and numeric stock quotes out. If I remember correctly the first 2 chars selected a head on

Re: Guessing the encoding of a test file... [OT]

2020-03-20 Thread Paul Dupuis via use-livecode
On 3/20/2020 4:47 PM, doc hawk via use-livecode wrote: On Mar 20, 2020, at 12:51 PM, Ralph DiMola via use-livecode wrote: Just for a laugh... one of the more esoteric codings I used in the quasi modern error (besides EBCDIC) was the 5 bit Quotron stock ticker system in the mid 90s. It used

Re: Guessing the encoding of a test file... [OT]

2020-03-20 Thread doc hawk via use-livecode
On Mar 20, 2020, at 12:51 PM, Ralph DiMola via use-livecode wrote: > > Just for a laugh... one of the more esoteric codings I used in the quasi > modern error (besides EBCDIC) was the 5 bit Quotron stock ticker system in > the mid 90s. It used different codes for requesting/receiving quotes

RE: Guessing the encoding of a test file... [OT]

2020-03-20 Thread Ralph DiMola via use-livecode
Just for a laugh... one of the more esoteric codings I used in the quasi modern error (besides EBCDIC) was the 5 bit Quotron stock ticker system in the mid 90s. It used different codes for requesting/receiving quotes because 2^5 is only 32 possible characters. Alpha in/numeric out. Ralph

Re: Problem opening version 9.6.0 (dp3)

2020-03-20 Thread William Prothero via use-livecode
Doh: Yeah, it helps. I got a new Macbook and it came with Catalina, which opens “unsafe” files differently than I was used to. All good. Tnx for the help. Bill William A. Prothero https://earthlearningsolutions.org > On Mar 19, 2020, at 8:24 PM, Devin Asay via use-livecode > wrote: > > Bill,

Re: Guessing the encoding of a test file...

2020-03-20 Thread doc hawk via use-livecode
On Mar 20, 2020, at 11:09 AM, Paul Dupuis via use-livecode wrote: > > Okay, now you going for the low blow :-)\ What part of “lawyer” wasn’t clear? B b :_) > Next, you'll be suggesting I need to check for EBCDIC encodings! That will be a start, but it’s not done until you include Baudot.

Re: Guessing the encoding of a test file...

2020-03-20 Thread Paul Dupuis via use-livecode
On 3/20/2020 1:11 PM, doc hawk via use-livecode wrote: On Mar 19, 2020, at 1:31 PM, Paul Dupuis via use-livecode wrote: “ASCII" Wait, you’re not going to distinguish between six and seven bit ASCII? :_) Okay, now you going for the low blow :-) Next, you'll be suggesting I need to check

Re: Guessing the encoding of a test file...

2020-03-20 Thread Paul Dupuis via use-livecode
On 3/20/2020 1:44 PM, Richard Gaskin via use-livecode wrote: I would be interested to learn more about the details of the subsequent refinements over the decade since, but also the ROI proposition for today: I'll try to remember to share the current code after this current review. I'm happy

Re: Guessing the encoding of a test file...

2020-03-20 Thread Richard Gaskin via use-livecode
Paul Dupuis wrote: > There are many published algorithms for doing this and we have a past > contractor of ours take a "best practice" algorithm and create a LCS > "guessEncoding function. This replaced a previous guessEncoding > function we had that from Richard Gaskin, which while quite good,

Re: Guessing the encoding of a test file...

2020-03-20 Thread Mark Waddingham via use-livecode
On 2020-03-20 15:34, Paul Dupuis via use-livecode wrote: Why did I ask this? Because I am interested in comparing the accuracy of our current handler to any other that may be available as, users being users, we recently have a user reveal a bug (mis named variable) in our current function that

Re: Guessing the encoding of a test file...

2020-03-20 Thread doc hawk via use-livecode
On Mar 19, 2020, at 1:31 PM, Paul Dupuis via use-livecode wrote: > > “ASCII" Wait, you’re not going to distinguish between six and seven bit ASCII? :_) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: IMAP Search skipping results

2020-03-20 Thread Pi Digital via use-livecode
Thanks Bob Yeah, I actually already have something like that. I’d abbreviated my code to keep it simple on the forum. I’m not having trouble connecting. It’s just the shortage of data returned from the server. It’s actually skipping a whole chunk in the middle which is the weirdest part.

Re: Guessing the encoding of a test file...

2020-03-20 Thread Håkan Liljegren via use-livecode
I know that Mozilla had a library for finding text decoding. I don’t think they use it anymore though. But I know it was translated into several other languages. It was called something like “universal character detection” or something equally sexy. Just typing out of my head, so it might be

Re: Guessing the encoding of a test file...

2020-03-20 Thread Paul Dupuis via use-livecode
To Sean and Bob, Thank you for your replies. I may not have been clear enough in my original post: We make and sell an App for macOS and Windows. It's uses around the world by researchers (not a lot of them as it is a niche product) on their computers. The research applications allows input

Re: IMAP Search skipping results

2020-03-20 Thread Bob Sneidar via use-livecode
This version wraps ALL the tsNet calls in a try catch construct: function IMAPGetHeaders pServer, pUser, pPass if pServer is empty then ask "Enter IMAP Server IP or address:" as sheet if the result is "Cancel" then return "Canceled." put it into pServer end if if

Re: IMAP Search skipping results

2020-03-20 Thread Bob Sneidar via use-livecode
This may be of more use. No functional changes, just something you can use to test against different IMAP servers: function IMAPGetHeaders pServer, pUser, pPass if pServer is empty then ask "Enter IMAP Server IP or address:" as sheet if the result is "Cancel" then return

Re: Guessing the encoding of a test file...

2020-03-20 Thread Bob Sneidar via use-livecode
If the files submitted to you do not need to retain their original formats for your purposes, why not just convert them all to a standard format? it's my understanding if you open the file using low level file commands without the binfile parameter, LC will convert the data into the local

Re: IMAP Search skipping results

2020-03-20 Thread Pi Digital via use-livecode
Thanks Matthias I will give it a go. I tried some of the other settings but not that one as it happens. Does that not upset the fact that you have set the inbox and also download each message body one at a time? That’s why I didn’t try it. In fact, just gave it a go but by the time the second

Re: Android Studio 3.6 breaks LC Android deployment?

2020-03-20 Thread Devin Asay via use-livecode
Thanks for confirming, Paul. I’ll create a bug report. Done: https://quality.livecode.com/show_bug.cgi?id=22629 Devin On Mar 20, 2020, at 6:29 AM, Paul Richards via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Hi Devin, I had the exact same issue, but on Windows. Having spent

Re: IMAP Search skipping results

2020-03-20 Thread matthias rebbe via use-livecode
Hi Sean, just a guess. Did you already try to set the NO_REUSE element in the tSettings array to TRUE? I am using that setting always, because the default one caused very often problems here. - Matthias Rebbe Life Is Too Short For Boring Code > Am 20.03.2020 um 03:16 schrieb Sean Cole

RE: Android Studio 3.6 breaks LC Android deployment?

2020-03-20 Thread Paul Richards via use-livecode
Hi Devin, I had the exact same issue, but on Windows. Having spent many days on this, your solution worked - Thank you or sharing. I could not setup Livecode with a clean install of Android Studio 3.6, but having deleted it and installed v3.5 - Livecode worked straightway and I was then

Re: Guessing the encoding of a test file...

2020-03-20 Thread Mark Waddingham via use-livecode
Rather than throwing ‘the baby out with the bath water’ so to speak... What are the precise cases in which the method you have fails? And why do you expect it to work in those cases? Warmest Regards, Mark Sent from my iPhone > On 19 Mar 2020, at 20:32, Paul Dupuis via use-livecode > wrote:

Re: Android Studio 3.6 breaks LC Android deployment?

2020-03-20 Thread JeeJeeStudio via use-livecode
I have 3.6.1 on windows, had no problems. Cheers and be save. Jerry Op 19-3-2020 om 23:03 schreef Devin Asay via use-livecode: Hi all, Yesterday I had to install Android mobile tools on my laptop (since I’m having to work from home now. I downloaded the newest JDK 1.8 and the newest Android