progs/app1.scala
changeset 559 db5cb071644d
parent 428 a47c4227a0c6
--- a/progs/app1.scala	Mon Sep 24 11:05:39 2018 +0100
+++ b/progs/app1.scala	Tue Sep 25 00:27:06 2018 +0100
@@ -1,4 +1,4 @@
 def get_page(url: String) : String = {
-  Try(Source.fromURL(url).take(10000).mkString).
-     getOrElse { println(s"  Problem with: $url"); ""}
+ Try(Source.fromURL(url)("ISO-8859-1").take(10000).mkString).
+    getOrElse { println(s"  Problem with: $url"); ""}
 }