From 1ecfd882491d842d7e0aac1ec3c5ae4e734c2108 Mon Sep 17 00:00:00 2001
From: Mika Pohto <mspoht@utu.fi>
Date: Mon, 10 Dec 2018 11:36:56 +0200
Subject: [PATCH] UTF-8 koodaus

---
 tiedostonKaanto.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tiedostonKaanto.java b/tiedostonKaanto.java
index b300a56..4e72df4 100644
--- a/tiedostonKaanto.java
+++ b/tiedostonKaanto.java
@@ -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())
     {
-- 
GitLab