Hello Ranchers,
I have a big problem with a little JTextArea.
When setting a text like this in a JTextArea, all looks fine:
But when I try to load this text from a file I get nonsense (square characters).
You may ask: How do you get this text to a file? I copy & paste it from the JTextArea. Then (in Windows XP) I generate a new textdocument with the default notepad. The unicode characters show here fine as well. At the moment I want to save it, I get the choise to save it in ANSI, Unicode, Unicode Big Endian or UTF-8. I choose Unicode.
To load the text to my JTextArea I do this:
Hmm, that's too simple I guess.
So, what might the magical lines be to get this rigth???
Thank you for your help!
Daniel Palombo