The file is saved in ISO-8859-15 encoding. It will be good if the file would be re-saved in UTF-8 encoding so it will be possible to open file in any editor and observe all of the symbols in the way they are presented in original locale.

Comments

ruslan.muradov’s picture

And here is the patch

johnv’s picture

Status: Active » Needs work

If I open the file myself, the characters look OK.
If I open the file in Notepad, and resave as UTF-*, then I get this difference:

Index: office_hours.feeds.inc
===================================================================
--- office_hours.feeds.inc	(revision 1451)
+++ office_hours.feeds.inc	(working copy)
@@ -1,4 +1,4 @@
-<?php
+<?php
 
 /**
  * @file
@@ -115,7 +115,7 @@
         switch (strtolower(substr($feed_element, 0, 3))) {
           case 'sun': //en
           case 'zon': //nl
-          case 'søn': //da
+          case 'søn': //da
             $sv_day = '0';
             break;
           case 'mon': //en
@@ -145,7 +145,7 @@
             break;
           case 'sat':
           case 'zat':
-          case 'lør':
+          case 'lør':
             $sv_day = '12';
             break;
         }
johnv’s picture

Title: Convert the office_hours.feeds.inc into UTF-8 encoding » Convert office_hours.feeds.inc into UTF-8 encoding
Status: Needs work » Fixed

OK, let's see if this works.

Be aware that the languages are only examples, since a uniform language-handling is not provided.
Users need to add their own language if necessary.

It is committed here.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.