Menu

Changing character encoding Display Language

Users
Anonymous
2012-01-22
2015-01-06
  • Anonymous

    Anonymous - 2012-01-22

    How can I display a different character set in the teleprompter? I was able to enter the language normally, but the teleprompter displayed it wrong.

     
  • DC

    DC - 2012-02-07

    That's a great question.  Try the newly released 1.0.1 version.  If the problem persists, let us know.  BTW, would you be willing to do some translation of the text in TeleKast to be multi-lingual?

     
  • Nick

    Nick - 2013-12-01

    Hello there, I get the 1.0.1 release. Everything it's ok but I want to display greek letters and texts to the prompter. I want and I am able to help to do any neccessary work to accomplish this task.

     
  • Toshiharu Imanari

    I successfully display Japanese characters in version 1.0.1 by rearranging those codes.
    I think the problem bases on the fact that TeleKast handles text files without en/decoding, though the internal charset of Javascript is UTF-16.

    C:\Program Files\TeleKast\teleprompter\teleprompter.html

    <head>
        <title>Teleprompter</title>
        <meta content="text/html" charset="UTF-8" /> <!-- Insert this line -->
        <link rel="stylesheet" type="text/css" href="teleprompter.css" title="Default" />
        <script type="application/javascript" src="teleprompter.js"></script>
    </head>
    



    about 800th line in C:\Program Files\TeleKast\chrome\telekast\TeleKast.js

    HTML += "<title>TeleKast</title>\r\n";
    HTML += "</head>\r\n";
        HTML += "<meta content=\"text/html\" charset=\"UTF-8\" />"; // Insert this line
    HTML += "<body>\r\n";
    



    Add those lines at the end of C:\Program Files\TeleKast\chrome\telekast\TeleKast.js

    File.prototype.read_org = File.prototype.read;
    File.prototype.read = function(aSize) {
    var rv;
    rv = this.read_org(aSize);
    if (!this.mIsBinary)rv = decodeURIComponent(escape(rv)); 
      return rv;
    }
    
    File.prototype.write_org = File.prototype.write;
    File.prototype.write = function(aBuffer) {
    if (!this.mIsBinary || aBuffer.constructor !== Array)
      var aBuffer = unescape(encodeURIComponent(aBuffer));
      return this.write_org(aBuffer);
    }
    
     

    Last edit: Toshiharu Imanari 2014-04-09
  • cigam

    cigam - 2015-01-06

    Hi,

    I made this changes, but something wrong. I lost the "preview" window. What do I wrong?
    Before:http://1drv.ms/17f3JSn
    After:http://1drv.ms/17f3JSn

    Regards,
    Tamas

     

Log in to post a comment.