Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Unable to use Polish characters in Expression.

  • Unable to use Polish characters in Expression.

    Posted by Daniel Annefelt on May 15, 2013 at 9:17 pm

    Hello!
    I built a rather large project that outputs promo graphics and text in a bunch of different languages (German, Swedish, Danish etc.).
    A series of checkboxes sets month, day and time – not very complicated but very effective for our day to day production.
    All months/days etc. are included in the script, something like this:
    _______
    MON = comp(“03_WEEKDAYS”).layer(“DAYS”).effect(“MONDAY”)(“Checkbox”)
    TUE = comp(“03_WEEKDAYS”).layer(“DAYS”).effect(“TUESDAY”)(“Checkbox”)

    if (MON > 0)
      {
     “MONTAG ”
      }
    if (TUE > 0)
      {
     “DIENSTAG ”
      }
    _______
    etc.

    This has worked fine for 8 languages with all sorts of weird languages specific characters like “ä æ ø” etc, but as I was incorporating Polish I ran in to trouble.
    After Effects Expressions seems unable to deal with Polish characters. All Polish characters are replaced with a question mark.
    For instance, the word for Friday – “PIĄTEK” turns into “PI?TEK”. However – I can name the layer “PIĄTEK” without problem.
    I’ve tried this in both CS5 and CS6 and searched high and low all over cyber space with no luck.
    I’m stumped. Does anyone have a solution to this problem?

    Best Regards etc.
    .::Daniel

    Daniel Annefelt replied 12 years, 12 months ago 3 Members · 7 Replies
  • 7 Replies
  • Dan Ebberts

    May 15, 2013 at 11:36 pm

    Obvious question (sorry)–does the font you’re using support those characters?

    Dan

  • Todd Kopriva

    May 16, 2013 at 12:17 am

    If you need to use the Ą character in an expression, you can refer to it by its Unicode identifier, like so:

    "PI\u0104TEK"

    In that example, the backslash-u command is followed by the four-digit hexadecimal ID for the Ą character.

    You can look up the codes for the characters that you need to do this for at unicode.org.

    And please submit a bug report, since this should work better:
    https://www.adobe.com/go/wish

    ———————————————————————————————————
    Todd Kopriva, Adobe Systems Incorporated
    After Effects quality engineering
    After Effects team blog
    ———————————————————————————————————

  • Daniel Annefelt

    May 16, 2013 at 3:49 am

    Sorry if I was unclear, but the problem is in the Expression editor.
    It uses whatever font it uses. But Todd nailed it in the next post.

    .::D

  • Daniel Annefelt

    May 16, 2013 at 3:56 am

    Unbelievable!
    You just saved the few strands of hair left on my scalp.
    Will submit humble request to improve this process, but in the meantime;
    DZIu0118KUJEMY!

    .::D

    [Todd Kopriva] “If you need to use the Ą character in an expression, you can refer to it by its Unicode identifier, like so:

    “PIu0104TEK””

  • Todd Kopriva

    May 16, 2013 at 4:55 pm

    BTW, this happens because expressions are not Unicode, but simply use multibyte text encoding.

    If you want Unicode text in expressions, please make a feature request:
    https://www.adobe.com/go/wish

    ———————————————————————————————————
    Todd Kopriva, Adobe Systems Incorporated
    After Effects quality engineering
    After Effects team blog
    ———————————————————————————————————

  • Todd Kopriva

    May 20, 2013 at 12:56 am

    BTW, this site is handy for getting JavaScript string equivalents for Unicode characters:
    https://mothereff.in/js-escapes

    ———————————————————————————————————
    Todd Kopriva, Adobe Systems Incorporated
    After Effects quality engineering
    After Effects team blog
    ———————————————————————————————————

  • Daniel Annefelt

    May 20, 2013 at 10:49 am

    Great – thanx!
    Now I can Unicode all day long.

    .::D

    [Todd Kopriva] “BTW, this site is handy for getting JavaScript string equivalents for Unicode characters:
    https://mothereff.in/js-escapes

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy