Home Help Center

*.ice

kinsungkinsung Member kinsungOrganization: AF Engineering UniversityProject: simulation applications remote controler, data dri
does slice2cpp or slice2cs support unicode variable name definition?
Just like:

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

Comments

  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    No, Slice only supports ASCII for the names.
  • kinsungkinsung Member kinsungOrganization: AF Engineering UniversityProject: simulation applications remote controler, data dri
    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.
  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    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.
  • kinsungkinsung Member kinsungOrganization: AF Engineering UniversityProject: simulation applications remote controler, data dri
    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.
Sign In or Register to comment.