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

    Write Unicode char

    SDK Help
    0
    3
    643
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 15/12/2002 at 05:27, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:    Mac  ;  
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I need some help with the WriteString function.
      I want to write out a file that contains several rows of float or integer numbers that are separated by a horizontal tabulation.
      How can I add those unicode characters (0009 for tabulation, 000D for Carriage return) with the string that contains the numbers?
      Using a variable with a unicode char doesn't seem to work (e.g. var char_tab=0x0009).

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 15/12/2002 at 05:41, xxxxxxxx wrote:

        I believe one way to get arbitrary characters is to create a one-character string and set the value:

            
            
            var s = "*";  
            s[0] = 0x09;
        

        Did that work?

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 15/12/2002 at 05:57, xxxxxxxx wrote:

          You saved my day, Mikael 😉
          It works!

          1000 Thanks.
          Arndt

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