> To: REALbasic NUG <[email protected]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> If I save "high ASCII" characters in a text file via a
> TextOutputStream (UTF-8), TextEdit will display the characters
> incorrectly unless one goes into the TE preferences and tells it to
> open files as UTF-8.  On the other hand, TextWrangler opens the file
> just fine.  Is there something I can do to the file while/after
> saving to get TextEdit to display the file contents correctly?

Firstly, high-ascii doesn't exist.

And secondly, what you want is the UTF-8 BOM.

ElfData users are spoilt here. An ElfData user does this:

bs.Write myData.BOM
bs.Write myData // :)

Without ElfData you gotta write a few bytes. I forgot which though.

Maybe it's #xEF #xBB #xBF

--
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>

Reply via email to