Archived

This forum has been archived. Please start a new discussion on GitHub.

*.ice

does slice2cpp or slice2cs support unicode variable name definition?
Just like:

struct 物体
{
string 名称;
//...
};

Comments

  • dwayne
    dwayne St. John's, Newfoundland
    No, Slice only supports ASCII for the names.
  • does slice2cpp or slice2cs support unicode variable name definition?

    Thank you!

    So I should write a script to replace unicode name for "ID_number", and after slice2cs finished it's work, replace back "ID_number" for unicode name.:)

    By the way, sorry for the bad title.
  • dwayne
    dwayne St. John's, Newfoundland
    kinsung wrote: »
    So I should write a script to replace unicode name for "ID_number", and after slice2cs finished it's work, replace back "ID_number" for unicode name.:)

    I would not recommend doing that. Ice does not expect unicode names internally and it may not work. Even if it does we cannot guarantee that it will continue to do so in future versions.
  • ICE runtime environment don't remember any variable name information. It communicates olny by the bytes stream. So I think it is OK on these current version of ICE.