Monte Goulding
Monte Goulding
Hi @trevordevore it looks to me like server responses with non `2*` codes will not be decoded now when they would have been previously. Also I double-checked that the header...
@trevordevore https://github.com/livecode/livecode/blob/develop/engine/src/sysspec.cpp#L1315 It would be a reasonable thing to have exposed to LCS somehow. Ideally something that returned the encoding and length. However, it would be relatively easy to translate...
@trevordevore as I just bumped into libURL not decoding something correctly I thought I'd tickle this PR to see if you had any more thoughts on it
@bwmilby @trevordevore I think even simpler than that could be something like this: ``` function CheckForBOM pInput constant kEncodings = "UTF-8,UTF-16,UTF-16BE,UTF-16LE,UTF-32,UTF-32BE,UTF-32LE" local tCodepoint, tEncoding put numToCodepoint(0xFEFF) into tCodepoint repeat for...
BTW ideally we would have a file and folder handling script library with tests etc in `extensions/script-libraries` and it can include stuff like this, normalizing line endings, recursing directories, copying,...
ah ok ... I wrote it on the fly ;-) Yes reverse `kEncodings`!
Also probably remove `UTF-16` and `UTF-32` from the list as they are redundant.
Yes it should work barring my stuffed up ordering ;-)
What is returning blank? The function?
@runrevelanor I think this should be rebased onto `develop-8.2`