kee23
kee23

Reputation: 148

How can I get Chromecast correctly display unicode characters using custom receiver?

I've setup a custom receiver application using CastHelloText-android as a base, and I'm trying to get it to correctly display certain unicode characters, however it is just displaying a blank space instead where the characters should be.

<div id="message">Test: &#2613;&#2622;&#2617;&#2623;&#2583;&#2625;&#2608;&#2626; :End Test</div>

This renders correctly on the site where I'm hosting the custom receiver, but when attempting to display it using a DataCastManager from the Cast Companion Library, the unicode characters aren't showing up. Is there any way to make this display or is there an alternative?

UPDATE: I just tried the message:

<div id="message">Test: &#2394; &#2613;&#2622;&#2617;&#2623;&#2583;&#2625;&#2608;&#2626; :End Test</div>

And the character (ग़) for

&#2394;

shows up just fine. I'm assuming this is a supported language issue then?

Update2: To help clarify, here is the result I'm getting after casting from a device connecting to my receiver with the above message: Sample result from unicode character test

Upvotes: 0

Views: 499

Answers (1)

kee23
kee23

Reputation: 148

Google responded at: https://code.google.com/p/google-cast-sdk/issues/detail?id=794

And thanks Ali, your suggestion was correct. Using a .ttf font and applying it to the text will allow the characters to show up. It's not the same as having the actual unicode characters show up, but still helps.

Upvotes: 0

Related Questions