Is information of an exception must utf-8 in 3.5.1?

Gu ShuwangGu Shuwang Gu ShuwangOrganization: USTC iFLYTEK Co., LtdProject: iflytek sound analyser 4.0Member
Hi,

We upgraded ice from 3.4.2 to 3.5.1.
But we got garbled, when we catched an exception.
Network.cpp:2513:
Ice::ConnectionRefusedException:
connection refused: //messy code

So,
1 Is information of an exception must utf-8 in 3.5.1?
2 And if I want to get information of an exception like the way before(3.4.2), what should I do before or after I catched a exception?

Thanks,
Gu.

Comments

  • benoitbenoit Rennes, FranceBenoit FoucherOrganization: ZeroC, Inc.Project: IceAdministrators, ZeroC Staff ZeroC Staff
    Hi,

    That's correct, this was changed with Ice 3.5, the message string is now UTF-8. You'll need to set your console to use UTF-8 to get the correct value. There's currently no easy way to convert this string to a native string.

    Cheers,
    Benoit.
  • Gu ShuwangGu Shuwang Gu ShuwangOrganization: USTC iFLYTEK Co., LtdProject: iflytek sound analyser 4.0Member
    Thanks,
    benoit

    :)

    Gu.
Sign In or Register to comment.