This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

What type of character encoding can we write source comments in japanese at CCSv5.3?

I'm FAE of distributor in Japan,and I support Automotive customers.

Our customers ask me "What type of font can we write source comments in japanese at CCSv5.3?"

background

When They started using TI micom before ,CCS version is v5.3. and They can't change compiler version.

In Project Properties->Resource->text file encoding(CCSv5.3)

They found some fonts as bellow.

Inherited from container(MS932)

Other(ISO-8859-1/US-ASCII/UTF-16/UTF-16BE/UTF-16LE/UTF-8)

 

Then they have 4 questions of font types.

1)Can TI grant compiler behaviour using all japanese fonts for source comments(/* */) as above?

2)Can they add other japanese font? How to add fonts in CCSv5.3?

3)Can TI grant compiler behaviour using additional fonts for source comments?

4)If they change CCS version,does TI cahnge  answer from 1-3?

  

Best regard

Shinya Muramatsu

  • Muramatsu-san,

    This thread has been moved to the Code Composer forum for more appropriate support.

    Regards,
  • Unfortunately, TI compilers support only ASCII characters in all text input.  No exceptions.  In addition to code, this means comments, quoted strings, file names, directory paths, command line options, the contents of any OS environment variables used, and any other text seen by the compiler.  Should a user let some non-ASCII character slip by, the TI compiler cannot recognize the error and issue a useful diagnostic.

    Thanks and regards,

    -George

  • George-san,

    Thanks a lot for your reply.

    Your answer means that TI guarante compiler behaviour in ASCII code at Comment,is it correct?

     

    One more question.

    Why user can select text file encoding from MS932/ISO-8859-1/US-ASCII/UTF-16/UTF-16BE/UTF-16LE/UTF-8?

    I think that These are not ASCII code.

    TI don't support These code,but can user write text file in these code?

     

    Best regard

    Shinya Muramatsu 

  • Shinya Muramatsu said:
    Your answer means that TI guarante compiler behaviour in ASCII code at Comment,is it correct?

    As long as the comments contain nothing but ASCII characters, you will not have any problems.

    Shinya Muramatsu said:
    Why user can select text file encoding from MS932/ISO-8859-1/US-ASCII/UTF-16/UTF-16BE/UTF-16LE/UTF-8?

    Exactly where do you see this ability to select the text file encoding?

    Thanks and regards,

    -George

  • George-san

    Very thanks for your answering.

     

    "As long as the comments contain nothing but ASCII characters, you will not have any problems."

    OK,I answer them.

    "Exactly where do you see this ability to select the text file encoding?"

     Project Explorer -> select project -> Project Properties

    -> select Resource -> Text file encoding -> check Other(If check Inherited from container,I found MS932)

    -> I can select ISO-8859/US-ASCII/ UTF-16/UTF-16BE/UTF-16LE/UTF-8

    Sorry,I can't attach Print Screen this time.

     

    Best regard

    Shinya Muramatsu

  • Eclipse is a generic development environment that is the basis for more than just Code Composer Studio.  For the TI compiler, you must restrict your input to US ASCII characters.  As for encoding choices, you cannot use the UTF-16 variants.  The others do not cause any problems.

    Thanks and regards,

    -George