Skip to content
Snippets Groups Projects
Commit 1ecfd882 authored by Mika Pohto's avatar Mika Pohto
Browse files

UTF-8 koodaus

parent 2207ca8f
Branches master
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ public class tiedostonKaanto
String tiedosto2Nimi = args[1];
File tiedosto = new File(tiedostoNimi);
File tiedosto2 = new File(tiedosto2Nimi);
Scanner s = new Scanner(tiedosto);
Scanner s = new Scanner(tiedosto, "UTF-8");
FileWriter op = new FileWriter(tiedosto2);
while(s.hasNextLine())
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment