Browse Source

Use ISO instead of UTF, and remove extra stars.

Toni Fadjukoff 11 years ago
parent
commit
89ca40d2b0
2 changed files with 5 additions and 2 deletions
  1. 1 0
      .gitignore
  2. 4 2
      juvenes.pl

+ 1 - 0
.gitignore View File

@@ -1,4 +1,5 @@
1 1
 *.temp.html
2
+*.temp.js
2 3
 1.html
3 4
 2.html
4 5
 3.html

+ 4 - 2
juvenes.pl View File

@@ -32,7 +32,7 @@ sub finish_food {
32 32
   if ($cur_food =~ /Liha paniini.*tai Kasvis paniini/i && $cur_title eq $pinni_title) {
33 33
     # you get this every day, ignore
34 34
   } else {
35
-    push @cur_day_foods, $cur_food if ($cur_food ne "");
35
+    push @cur_day_foods, utf8_to_8859($cur_food) if ($cur_food ne "");
36 36
   }
37 37
   $cur_food = "";
38 38
 }
@@ -114,7 +114,9 @@ sub get_juvenes_restaurants {
114 114
             # loops different foods in a meal
115 115
             foreach my $food_info (@$menuitems) {
116 116
               $cur_food .= "\n" if $cur_food ne ""; 
117
-              $cur_food .= $food_info->{'Name'};
117
+              my $name = $food_info->{'Name'};
118
+              $name =~ s/^\*//;
119
+              $cur_food .= $name;
118 120
               $cur_food .= " (" . $food_info->{'Diets'} . ")" if $food_info->{'Diets'};
119 121
             }
120 122
             finish_food();