diff options
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r-- | modules/tag/helpers/tag_event.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/tag/helpers/tag_event.php b/modules/tag/helpers/tag_event.php index a301c441..a4a6ec26 100644 --- a/modules/tag/helpers/tag_event.php +++ b/modules/tag/helpers/tag_event.php @@ -34,7 +34,10 @@ class tag_event_Core { if (!empty($iptc["2#025"])) { foreach($iptc["2#025"] as $tag) { $tag = str_replace("\0", "", $tag); - $tags[$tag]= 1; + if (mb_detect_encoding($tag) != "UTF-8") { + $tag = utf8_encode($tag); + } + $tags[$tag] = 1; } } } |