summaryrefslogtreecommitdiff
path: root/classes/feedparser.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/feedparser.php')
-rw-r--r--classes/feedparser.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/feedparser.php b/classes/feedparser.php
index 400cc7095..9677164d3 100644
--- a/classes/feedparser.php
+++ b/classes/feedparser.php
@@ -183,10 +183,12 @@ class FeedParser {
}
}
+ // libxml may have invalid unicode data in error messages
function error() {
- return $this->error;
+ return UConverter::transcode($this->error, 'UTF-8', 'UTF-8');
}
+ // WARNING: may return invalid unicode data
function errors() {
return $this->libxml_errors;
}