Re: Getting HTML5 going

2020-03-21 Thread Colin Holgate via use-livecode
I have only used the standalone publishing, I’m not doing anything custom. Line 48 of standalone-community-9.5.1.js is what is talking to the stdio.html file. That part of the code says this: http.open("POST",”stdio.html" ___ use-livecode mailing li

Re: Getting HTML5 going

2020-03-21 Thread Pi Digital via use-livecode
Hi Colin What is it that is requesting stdio.html. In your HTML is there any reference to it? I’m using HTML5 deployment daily but have not come across this. Sean Cole Pi Digital > On 21 Mar 2020, at 21:31, Colin Holgate via use-livecode > wrote: > > I’m trying to get a stack going in HTM

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

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

Getting HTML5 going

2020-03-21 Thread Colin Holgate via use-livecode
I’m trying to get a stack going in HTML5, and there is a 404 error about a file named stdio.html. Is that a file I’m supposed to get from somewhere else? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, un

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

2020-03-21 Thread Paul Dupuis via use-livecode
Nope. The reason I refer to the routine as "guessEncoding" is that I absolutely know that it is a "guess" based on the presence of nulls and other bytes for UTF files and by statistical sampling for various characters for MacRoman vs CP1252. We also offer a optional way for the user to pick t

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

2020-03-21 Thread Paul Dupuis via use-livecode
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. (T

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

2020-03-21 Thread Quentin Long via use-livecode
I strongly suspect that the desired goal, to have a nice, robust algorithm which automagically identifies the encoding of *ABSOLUTELY ANY* text document with zero need for human involvement, simply isn't possible. Because text encoding is intrinsically arbitrary—see also: the many variations on