On Nov 17, 2006, at 23:08 UTC, Youri wrote:

>    t.write ConvertEncoding(Editfield1.text, Encodings.UTF8)

OK, so you're writing a file in UTF-8.

> When I write in editfield1 the following accentuated text :
> 
> é à è ç !!!
> 
> If I open the Preferences.txt file with TextEdit, I get :
> 
> ?© ?† ?® ?ß !!!

This just means that TextEdit hasn't properly guessed the text
encoding.  You could make it guess a little better by writing out a
byte-order mark at the beginning of the file, or you can just tell
TextEdit to open this as UTF-8.

> The preview in the finder shows the text properly, and so does
NeoOffice...

OK, so the Finder and NeoOffice are guessing correctly.

> I tried UTF16, MacRoman without any luck with Textedit.

Who knows what TextEdit is guessing?  I'm sure it will tell you
somewhere if you poke around enough.

> So, the question is : What shall I use to be sure that any 
> Wordprocessor/Text Editor will display my file correctly on Mac, on 
> Windows and in a multiplatform way?

You can't.  It's up to the individual reader app; some are smarter than
others, but there is generally NO fool-proof way to know what encoding
a particular text file might be.

> Is there somewhere in a text file that we can specify the encoding
used
> at the creation, so the Wordprocessor will know?

Nope -- apart from, perhaps, a byte-order mark, which some text editors
will recognize and others will not.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

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

Reply via email to