Can't display Chinese (UTF8) words in the ticker

Asked by Mingyi

Hi.
I have the problem about no Chinese words displayed in the client in the ticker.
I used Yahoo pipe to convert my original RSS feed to this one:
http://pipes.yahoo.com/pipes/pipe.run?_id=78a17a275f0fe15ed57cb3b2c79e1560&_render=rss

The Yahoo pipe convert other English RSS very well and can be displayed in the client

By the way, the text type in layout can display Chinese words very well.
but it can't display Chinese words in the ticker.

Would you please help me to solve this problem. Thank you very much.

My environment:
Client: Windows XP (zh-TW ver.) SP3, Xibo client 1.0.7
Server: FreeBSD, Xibo Server 1.2.0-rc1

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Mingyi
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

I've had a quick look and it seems that the client isn't able to download the feed at all.

I also can't see anything particularly wrong with the feed either. It probably needs running up in Visual Studio so we can see what's happening with it.

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#2

It looks like this might be an issue with Yahoo pipes.

When I run that feed against the Linux client I get the following RSS downloaded:
<rss version="2.0">

<channel>
<title>Convert_UDN_RSS</title>
<description>Pipes Output</description>

<link>
http://pipes.yahoo.com/pipes/pipe.info?_id=78a17a275f0fe15ed57cb3b2c79e1560
</link>
<pubDate>Thu, 05 Aug 2010 12:01:31 +0000</pubDate>
<generator>http://pipes.yahoo.com/pipes/</generator>
</channel>
</rss>

<!--
 fe2.pipes.ch1.yahoo.com uncompressed/chunked Thu Aug 5 12:01:31 GMT 2010
-->

Which is different to what I'm shown in the browser.

We specifically test with RSS containing unicode characters so I'm sure there's not a general issue with this - but there is a specific issue with this feed by the looks of it.

I'll keep digging.

Alex

Revision history for this message
Mingyi (mingi) said :
#3

Thank you for your effort.

This is the original feed: http://udn.com/udnrss/latest.xml
I use Yahoo pipe to convert this feed.

Revision history for this message
Alex Harrington (alexharrington) said :
#4

The original feed works fine in the Linux client but not in the Windows one.

Again there's no cached file downloaded by the Windows client with that feed so it needs some investigation inside Visual Studio.

Revision history for this message
Mingyi (mingi) said :
#5

After several weeks I finally set up the Ubuntu 10.04 and python client.

Chinese words in the ticker were showed very well.

Also Chinese fonts in the Ubuntu are much beautiful than those in the Windows.

I love python client ! Thank you for your effort and sharing.

I am looking forward to the version without "known issue". I hope it will come very soon.

Revision history for this message
Mingyi (mingi) said :
#6

The Xibo client 1.0.8 also have the problem, but it's not a problem in the python client.

The solution is : using python client !

Revision history for this message
Naoto SONE (naosone) said :
#7

Hi, Mingyi.

The Xibo client 1.2.0-rc2 also have the problem, but it can display non-ASCII code which encoded by HTML-ENTITIES.

The Xibo client can display RSS feed with Japanese word through my tiny php script which convert from utf-8 to HTML-ENTITIES.

Revision history for this message
Dan Garner (dangarner) said :
#8

Would you mind sharing your PHP script, it would help us to determine the
cause of the issue.

Revision history for this message
Naoto SONE (naosone) said :
#9

Hi, Dan.

The Xibo ticker could display Japanese word which converted from UTF-8 to HTML-ENTITIES by this script.

<?php
if(isset($_GET['url'])) {
  $url = $_GET['url'];
}

if(! isset($url)){
  $url = 'default RSS';
}

$fp = fopen($url,'r');
if ($fp == FALSE) {
  echo 'error';
  exit(1);
}

while (! feof($fp)) {
  print mb_convert_encoding(fgets($fp),"HTML-ENTITIES","UTF-8");
}
?>

Revision history for this message
Dan Garner (dangarner) said :
#10

Thanks, so you use this script to pull the feed itself... i.e. if you wanted
to get http://bbc.co.uk/feed/ you would call myscript.php?url=
http://bbc.co.uk/feed/ ?

Does this not indicate that the feed is being served with the wrong
encoding? Do you have some example feed URL's we could try out?

A word of warning (i'm sure you already know this) - you should ensure your
script is not accessible by anyone that you dont trust - because you could
just as easily do myscript.php?url=c:/windows/importantfile

Revision history for this message
Alex Harrington (alexharrington) said :
#11

There's a feed in the question history already. I tried it. Works fine on Linux client, does nothing on the .net client. Feed parses validation OK. I put a note that it needs running up in VS to see what's going on.

A

Revision history for this message
Dan Garner (dangarner) said :
#12

Ah yes, sorry... the email didn't show all the history. I will look into it.

Revision history for this message
Naoto SONE (naosone) said :
#13

Thank you, Dan.
My script did not consideration of security.

I try to show following URL:
http://rss.weather.yahoo.co.jp/rss/days/7110.xml