summaryrefslogtreecommitdiff
path: root/modules/aggregator.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/aggregator.module')
-rw-r--r--modules/aggregator.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module
index 0dbde5585..e1bce4967 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.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];
}