Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
destruk
Streaming Star

Extended ascii character conversion?

Is there an easy way to change characters from the extended ascii set to characters roku can display as standard text?
ie

Citro�n Berlingo Multispace � Pagani Zonda � Lamborghini Murci�lago � Mazda6 Speed Cameras Harry Enfield

FFFD to say, a standard "e" and FFFD to a "." or something to handle every noncompatible character automatically without requiring a separate executed line for each character possibility? I'm looking for an easier solution - like to take the character value and if it's >128 then subtract some value from it to get a standardized alphanumeric character?
0 Kudos
1 REPLY 1
EnTerr
Roku Guru

Re: Extended ascii character conversion?

U+FFFD is already a "replacement character" which means whatever was there has been busted already by previous "conversion", it's displayed to indicate there *was* unpresentable character here.

Assuming is there generic solution to replace unicode symbols that have no presentation in particular font - no, since you don't know which characters are implemented in each TTF, nor is it clear what you (the author) would consider reasonable substitution. For example is it reasonable to replace "™" with "(TM)" and "©" with "(C)"? Maybe yes, maybe no because it may change the text alignment.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.