diff --git a/toreadapi.php b/toreadapi.php index 6a7f8ce..61172c8 100644 --- a/toreadapi.php +++ b/toreadapi.php @@ -243,6 +243,14 @@ function postEntry() { $result = curl_exec($ch); if ($result !== false) { + // Look for a charset definition in the page. + // Convert to UTF-8 if necessary. + if (preg_match("#. if (preg_match("#