Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-14-2003
Mr.Freeze Mr.Freeze is offline
Registered User
 
 
Join Date: Aug 2003
Location: Germany
Posts: 23
Unicode question

Hello,

In my Ice-file I defined a function that returns a string. In the documentation is mentioned that the Slice built-in string type is able to work with Unicode. Through the Client-Side-C++ mapping a std::string is formed. Works this std::string also with Unicode? If not, what can I do to use Unicode in my application?

Thanks
Reply With Quote
  #2 (permalink)  
Old 08-14-2003
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 970
Hi,

Strings in Ice/C++ are treated as UTF-8; utility functions are provided for converting from std::wstring to std::string.

Your program will need to include <IceUtil/Unicode.h>, which defines two functions:

Code:
namespace IceUtil
{
std::string wstringToString(const std::wstring&);
std::wstring stringToWstring(const std::string&);
}
- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
icepatch2 unicode error incubator Help Center 5 11-22-2006 04:04 AM
UNICODE not required in 1.3 amrufon Comments 1 03-11-2004 07:22 AM
unicode does not support multiple word languare. damingyipai Bug Reports 4 03-09-2004 10:28 PM


All times are GMT -4. The time now is 07:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.