From 4be773ce468bb6d6ac2660cd42ca750ba0e997d8 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Sun, 16 Sep 2012 22:23:41 +0000
Subject: [PATCH] 1. Usunięcie katalogu ./data/kino 2. Uwzględnienie w/w zmiany w plikach UPGRADE i test.php

---
 data/tv/pobierz.php |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/data/tv/pobierz.php b/data/tv/pobierz.php
index 12fc829..ccb93bd 100644
--- a/data/tv/pobierz.php
+++ b/data/tv/pobierz.php
@@ -60,6 +60,8 @@
 );
 $NUMOF = count($stations);
 
+ini_set('mbstring.substitute_character', 'none');
+
 $c = curl_init();
 $out = fopen('./xmltv-pre.xml', 'w');
 fwrite($out, '<?xml version="1.0" encoding="UTF-8" ?>
@@ -85,11 +87,12 @@
 			return;
 		}
 		
+		$data = mb_convert_encoding($data, 'UTF-8', 'UTF-8');
 		file_put_contents('./cache/'.$num.'_'.$date, $data);
 		unset($data);
 	}
 	
-	$doc = new DOMDocument;
+	$doc = new DOMDocument('1.0', 'utf-8');
 	@$doc->loadHTMLFile('./cache/'.$num.'_'.$date);
 	
 	$wp = new wp_parse($doc);

--
Gitblit v1.9.1