Re: Distinguishing between ASCII and UTF8

2010-10-07 Thread Bob Sneidar
Okay, so that begs the question, if there is no difference between UTF8 and ASCII, why make the distinction? I mean, what would be the point to converting from ASCII to UTF8 or vis versa if the results were always the same? Just being practical. Bob On Oct 6, 2010, at 1:29 PM, Jeff Massung

Re: Distinguishing between ASCII and UTF8

2010-10-07 Thread Bob Sneidar
I have a saying: You know exactly as much after you say Maybe... as you did before you said it. Bob On Oct 6, 2010, at 4:55 PM, Richard Gaskin wrote: Jeff, Dave, Peter: thank you! Good stuff - I think I'll be able to distinguish most files using those. -- Richard Gaskin Fourth

Re: Distinguishing between ASCII and UTF8

2010-10-07 Thread Richmond Mathewson
On 10/7/10 7:59 PM, Bob Sneidar wrote: Okay, so that begs the question, if there is no difference between UTF8 and ASCII, why make the distinction? I mean, what would be the point to converting from ASCII to UTF8 or vis versa if the results were always the same? Just being practical. Some

Re: Distinguishing between ASCII and UTF8

2010-10-07 Thread Richmond Mathewson
On 10/7/10 8:02 PM, Bob Sneidar wrote: I have a saying: You know exactly as much after you say Maybe... as you did before you said it. I always wonder about the word 'Maybe' and whether it might be almost semantically empty . . . :) Bob On Oct 6, 2010, at 4:55 PM, Richard Gaskin

RE: Distinguishing between ASCII and UTF8

2010-10-07 Thread Lynn Fredricks
On 10/7/10 7:59 PM, Bob Sneidar wrote: Okay, so that begs the question, if there is no difference between UTF8 and ASCII, why make the distinction? I mean, what would be the point to converting from ASCII to UTF8 or vis versa if the results were always the same? Just being practical.

Re: Distinguishing between ASCII and UTF8

2010-10-07 Thread Mark Schonewille
Hi Bob, UTF8 is platform independent, ASCII isn't. -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 7-okt-2010, om 18:59 heeft

Re: Distinguishing between ASCII and UTF8

2010-10-07 Thread Jerry J
On Oct 7, 2010, at 11:05 AM, Lynn Fredricks wrote: I still have sweaty nightmares about DOS code pages... I whisper quietly to myself in a corner: EBCDIC. --Jerry Jensen ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit

Re: Distinguishing between ASCII and UTF8

2010-10-07 Thread Richmond Mathewson
On 10/7/10 9:39 PM, Jerry J wrote: On Oct 7, 2010, at 11:05 AM, Lynn Fredricks wrote: I still have sweaty nightmares about DOS code pages... I whisper quietly to myself in a corner: EBCDIC. --Jerry Jensen The thing that wakes me in a cold sweat at the Brahma Mahurta is the FORTRAN

Distinguishing between ASCII and UTF8

2010-10-06 Thread Richard Gaskin
I have an app that needs to auto-detect Unicode and plain text, and render them correctly based on that auto-detection. I have the UTF16 stuff working, but with UTF8 I have a problem: there is no BOM to let me know if it's Unicode, and some plain text files will occasionally have high-ASCII

Re: Distinguishing between ASCII and UTF8

2010-10-06 Thread Jeff Massung
On Wed, Oct 6, 2010 at 3:23 PM, Richard Gaskin ambassa...@fourthworld.comwrote: I have an app that needs to auto-detect Unicode and plain text, and render them correctly based on that auto-detection. I have the UTF16 stuff working, but with UTF8 I have a problem: there is no BOM to let me

Re: Distinguishing between ASCII and UTF8

2010-10-06 Thread Dave Cragg
Richard Below is a function that was translated from a PHP script. It is intended to determine whether the passed in string could be utf8. I have tested it in a limited way and it seems to work. But maybe someone else can see the flaws. If it returns false, then it is not UTF8. If it returns

Re: Distinguishing between ASCII and UTF8

2010-10-06 Thread Peter W A Wood
Richard I have an app that needs to auto-detect Unicode and plain text, and render them correctly based on that auto-detection. I have the UTF16 stuff working, but with UTF8 I have a problem: there is no BOM to let me know if it's Unicode, and some plain text files will occasionally

Re: Distinguishing between ASCII and UTF8

2010-10-06 Thread Richard Gaskin
Jeff, Dave, Peter: thank you! Good stuff - I think I'll be able to distinguish most files using those. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: