changeset 416:c88f7449b526

fetch_weather: Possibly another UTF8 fix :S
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Jan 2017 22:56:32 +0200
parents ff932030a9b3
children 3c42ad35e157
files fetch_weather.pl
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/fetch_weather.pl	Sat Jan 07 22:41:07 2017 +0200
+++ b/fetch_weather.pl	Sat Jan 07 22:56:32 2017 +0200
@@ -374,10 +374,11 @@
       else
       {
         print STDERR "Using CACHED Tiehallinto static meta data from '$meta_file'.\n" if (opt_get_int("debug") > 0);
-        $meta_str = read_text($meta_file, "utf-8");
+        $meta_str = read_text($meta_file);
       }
 
-      print STDERR "Is meta_str UTF8? ".(utf8::is_utf8($meta_str) ? "yes" : "NO!")."\n" if (opt_get_int("debug") > 1);
+      print STDERR "Is meta_str UTF8? ".(utf8::is_utf8($meta_str) ? "yes" : "NO!")."\n" if (opt_get_int("debug") > 0);
+
 
       # Parse the data ..
       my $meta_data = {};