Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RTF Encodings



On Mon, 2005-05-30 at 19:52 -0400, email@hidden wrote:
Using JTextPane with rtf encoding and the rf posted at the end of this note, I'm getting some characters I don't understand. One example is \'9f. This character seems like it should display as a lowercase u with two dots above it, and indeed, that's the way it does display using this RTF from Microsoft Word. In JTextPane, though, it displays as a lowercase z with an accent over the z, both on Macintosh and Windows.

Can anyone tell me why JTextPane displays this character as the accented z? Where can I fond a complete list of the characters \'80 to \'ff as displayed by JTextPane?

Your RTF lacks the encoding declaration. It looks like it was saved using OpenOffice or other program that strips declaration and replaces accented characters with a special Unicode variant. Word can display the text correctly because it assumes that the missing encoding is the same as the default one for your version of Office, but if I open your file in a Chinese version of Word, all I'll see is garbage.

Anyway, be careful and do not save the file again with Office for Mac, as the default encoding is "10000", something that Java can't handle.

Regards,
Rodolfo
--
Rodolfo M. Raya <email@hidden>
Heartsome Holdings Pte Ltd
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >RTF Encodings (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.