View Single Post
  #2 (permalink)  
Old 08-10-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Can you try the following C++ code:

std::string s = "élephant";
std::cout << s << endl;

What does it print?

As a general note, I recommend to use unicode and std::wstring, and then convert to std::string:

std::wstring ws = ... "élephant" in unicode format ...
std::string s = IceUtil::wstringToString(ws); // s now holds "élephant" in utf-8

I don't think that this is the cause of your problems. But the on-the-wire string representation for the Ice protocol is UTF-8, not ISO-8859-15. If you don't use UTF-8, you won't be able to interoperate for example with Ice for Java if you use non-ASCII strings.
Reply With Quote