Welcome to Geeklog Sunday, September 15 2019 @ 06:04 pm EDT

Geeklog Forums

Portal Block Corrupted UTF-8 Characters


Status: offline

woop

Forum User
Newbie
Registered: 02/06/05
Posts: 10
Location:Hong Kong
I have a portal block set up to get rss feed from Google News. The block works fine for UTF-8 English News but for UTF-8 Chinese, the characters are all corrupted. My site runs on UTF-8 and Chinese content on other blocks and stories are ok.

Appreciate someone could point me a link.

Many thks.

Status: offline

woop

Forum User
Newbie
Registered: 02/06/05
Posts: 10
Location:Hong Kong
Have done a change at lib-common.php:

PHP Formatted Code

3319c3353
<                      . $feed->articles[$i]['title'] . '</a>';
---
>             . utf8_decode($feed->articles[$i]['title']) . '</a>';

 


to solve my problem...

All times are EDT. The time is now 06:04 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content