From f6cae0943963e13be880e16c29f4e2560d9a030d Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 30 Dec 2003 06:41:24 +0000 Subject: - Specify default XML encoding for not-so-well-formed files (sorry last commit, I promise :P) --- modules/import.module | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/import.module') diff --git a/modules/import.module b/modules/import.module index 0dbde5585..e1bce4967 100644 --- a/modules/import.module +++ b/modules/import.module @@ -326,6 +326,7 @@ function import_refresh($feed) { } // extract the XML file's encoding (the XML parser in PHP4 doesn't do this by itself): + $encoding = 'utf-8'; if (ereg('^<\?xml[^>]+encoding="([^"]+)"', $data, $match)) { $encoding = $match[1]; } -- cgit v1.2.3