# HG changeset patch # User Matti Hamalainen # Date 1483822592 -7200 # Node ID c88f7449b52650bc83f72554b84ffc9c0a58eaf7 # Parent ff932030a9b32740a34455ee4471f9d0418374ed fetch_weather: Possibly another UTF8 fix :S diff -r ff932030a9b3 -r c88f7449b526 fetch_weather.pl --- 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 = {};