UTF-8, Java, and text output to an RTF
I am coding my first commercial application and I'm working through bugs slowly but surely. Here's a problem I've run into:
I am having the character '▓' and others output to an RTF by this method:
When I open the output file in WordPad it prints a 'â–ˆ'. I have to use WordPad for this and I also have to have the block character. I'm coding a medical text-based application where the user will eventually look at a printout of a 96 well plate and line it up and the dark boxes represent a positive read and the light boxes represent negative reads. I have to use those because other characters aren't dark enough.
FileWriter outputStream = new FileWriter("output.rtf");
Any advice? I'm coding in eclipse.
Also, can you make it output with default font other than Times New?
I also have noticed in WordPad when I open the output file instead of showing a picture of a colored rtf in the tile bar it's just a regular text picture next to "output - Wordpad" on the top left. This only happens when I open this rtf and not another rtf I create in WordPad.