> To: REALbasic NUG <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > On Apr 23, 2007, at 6:25 PM, Theodore H. Smith wrote: > >> Guessing UTF-8 is almost always correct. > > Agreed. > >> It's way over 99% reliability. > > I wouldn't go that far. I've written code to interact with a lot of > web services (XML-RPC, etc.), and many of them will return Latin-1 or > some such, even while reporting it as UTF-8. > > One cannot trust anyone these days.
No, I mean "guessing", by analysing the bits of the data stream. Analysing might be a better word than "guessing". UTF-8 has a very specific and unlikely to get right by chance, pattern. -- http://elfdata.com/plugin/ "String processing, done right" _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
