|
Java™ by example!
|
|
|
How do I write a file in UTF-8 encoding using a Writer?
You can specify the encoding UTF-8 with OutputStreamWriter. This class will convert the outgoing Unicode to UTF-8 bytes. Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|