0

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

7
  • Using a chrome debugger, what do you get on your receiver when you send this message using DataCastManager?
    – Ali Naddaf
    Commented Mar 21, 2016 at 6:17
  • I just found my answer I believe. Adding the character &#2394; "ग़" will display in Hindi font, but the other characters I was using are from Gurmukhi font and appear as blank. This is probably because Chromecast doesn't support Gurmukhi characters yet?
    – kee23
    Commented Mar 21, 2016 at 6:33
  • You should be able to load that in your receiver.
    – Ali Naddaf
    Commented Mar 21, 2016 at 6:41
  • 1
    I'm not quite sure what you mean. It's loading just find in my receiver if viewed from a browser, however the characters show up blank when casting from a device (aside from the Hindi character)
    – kee23
    Commented Mar 21, 2016 at 6:50
  • I mean you should be able to load any fonts that are missing in your own receiver; Chromecast includes a finite set of fonts and if you need something that it doesn't include, then you'd need to load that yourself.
    – Ali Naddaf
    Commented Mar 21, 2016 at 13:55

1 Answer 1

0

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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.