Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Non-ASCII symbols in a *.str file?

    SDK Help
    0
    4
    394
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 19/12/2015 at 18:08, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R17 
      Platform:    Mac  ;  
      Language(s) :     C++  ;

      ---------
      When I try and use non-ASCII characters in a string file for a GUI displayed in the attributes manager, they don't show up properly.

      For example, "∞" (infinity symbol) shows up as ",àû" instead.

      Is there any way to make this work? Or are you limited to boring text instead? C4D can clearly display such symbols because you can use them in custom user data widgets and it works fine, it just doesn't seem to read them properly from a strings file on disk.

      -CMPX

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 19/12/2015 at 20:40, xxxxxxxx wrote:

        You have to use \u Unicode notation in your .res files for non-ASCII (Unicode) characters.  The notation uses hexadecimal notation, eg: \u00a9 for the Copyright symbol.  Then they should show up properly.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 19/12/2015 at 21:17, xxxxxxxx wrote:

          Awesome. Thanks!

          -CMPX

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 20/12/2015 at 03:21, xxxxxxxx wrote:

            You can use the Unicode Escape Tool  from devtools to convert special characters to the unicode escaped
            version. I usually write the complete STRINGTABLE file in that tool and press convert.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post