realbasic-nug
[Top] [All Lists]

Re: Editfield and text encoding question

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Editfield and text encoding question
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Wed, 31 Aug 2005 09:26:27 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <43158099 dot 7090806 at asialogique dot com> <a06200722bf3b6ef159e9 at [10 dot 0 dot 1 dot 4]> <4315C87B dot 2040009 at asialogique dot com>
At 11:10 PM +0800 8/31/05, Laurent Vidonne wrote:

I guess I formed these assumptions seeing how a text editor (say BBEdit) can open just about any file, and display 'something' from it, while seemingly not 'breaking' it.

BBEdit is not a Unicode text editor; the REALbasic EditField is. So if you give it some text that isn't already Unicode, it has to be converted to Unicode to be stored in the EditField.

Try opening your binary file in TextEdit as MacRoman, then saving it out as a different encoding (say, UTF-8), and see how far that gets you. :)

Best,
- Joe

--
Joe Strout                          REAL Software, Inc.

Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>