Characters encoding in Javascript



  • Hello,

    I'm experimenting the new object Javascript in the V2, for coding some strings. I've a problem with the accented characters of the output values. Does anybody know how I can change the charset of my strings?

    Thank you,
    Stéphane



  • Hi Stephane
    Are you wanting to output text in french?
    primald

    (@DusX, @Mark)



  • Hi Primald,

    Yes, you guess! I'ld like to output text in French, with characters like é, à, è.

    I'ld to concatenate 2 strings, and I thought that the new Javascript object could be great. The only problem is the charset. Any idea to do it?
    I attach a patch to be completely clear.
    eba14b-js_concatenate.izz



  • @primaldivine

    This capability has not been tested at all.. currently I think it's reading ASCII only. We'll need to see if it's possible to have multi-lingual support... please file a bug report on this one so we won't lose track.

    Thanks,
    Mark



  • Thank you Mark for your answer. I'll file a bug report about this and the abaility to work with UTF-8.
    Do you think it's possible to concatenate strings with others objects?

    Thanks,
    Stéphane

    @primaldivine



  • The Text Formattter actor will concatenate strings. Just use two parameters

    p1 p2

    and feed the strings into the two inputs.

    Best,
    Mark



  • Thanks Mark for your tip.

    Best,
    Stéphane


Log in to reply
 

Looks like your connection to TroikaTronix Community Forum was lost, please wait while we try to reconnect.