This content has been marked as final. Show 1 reply
When you write to that file, you'll have to use a suitable charset. In your case (you didn't post any code, why not?) I guess you are allowing the system to use its default charset, and that isn't capable of encoding the characters you have there.
So, first you will have to decide what charset to use when you write the data to that file. Don't just choose one at random, choose one which the people reading the file, and their software which they use to read it, will be able to deal with.
Second, use an OutputStreamWriter which specifies that charset and wrap it around a FileOutputStream which directs output to that file.