Hi,
I have a program that is being used on Mac's and PC's. The Mac's are running
OSX. The user can copy and paste text from the clipboard into a JTextArea
which is part of a form. Sometimes when the text comes from the clipboard
there is a hollow box at the end. This box cannot be selected. I am using
the DecodeXML and EncodeXML methods to save files to disk until the user
decides to save the files to a database. When these files are written or
read from disk I receive this error:
'org.xml.sax.SAXParseException: Illegal XML character: �.'
Does anyone have a clue as to what � translates to? What is this that is
coming from the clipboard. This is text that is being copied from one
application to a java textfield all on a Mac. This is not persistent, it
only occurs occasionally and really screws things up when it does.
If this is return or control characters could anyone point me to some
literature on how to filter this stuff out in java.
Thanks for any help,
Rich