From 09f5108f9111736f0204c09e1fb4ba569ee91e54 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Tue, 2 Jan 2018 15:29:24 +0100 Subject: [PATCH] Reading UTF-8 as default --- src/main/java/es/kauron/jstudy/model/TestItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/es/kauron/jstudy/model/TestItem.java b/src/main/java/es/kauron/jstudy/model/TestItem.java index 0966d2f..8e4444e 100644 --- a/src/main/java/es/kauron/jstudy/model/TestItem.java +++ b/src/main/java/es/kauron/jstudy/model/TestItem.java @@ -77,7 +77,7 @@ public class TestItem { in = new Scanner(new FileInputStream(file), "ISO-8859-1"); break; default: - in = new Scanner(file); + in = new Scanner(new FileInputStream(file), "UTF-8"); break; } while (in.hasNextLine()) {