Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-21-2005
jgaa's Avatar
jgaa jgaa is offline
Registered User
 
Name: Jarle Aase
Organization: Jgaa's Internet
Project: War FTP Daemon
 
Join Date: Mar 2005
Location: Bergen, Norway
Posts: 8
Question Status on wstring?

Hi,

I'm new to ICE. I read the documentation this weekend but I've not yet started any coding. My apps use unicode alot, and I'm wondering if wstrings are supported with C++?
Reply With Quote
  #2 (permalink)  
Old 03-21-2005
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,534
Yes, Slice strings use the Unicode UTF-8 format. You can convert UTF-8 std::string to UTF-16 std::wstring and vice versa with conversion methods from include/IceUtil/Unicode.h. For examples on how to use these methods, see test/IceUtil/Unicode.cpp.

Benoit.
Reply With Quote
  #3 (permalink)  
Old 03-21-2005
jgaa's Avatar
jgaa jgaa is offline
Registered User
 
Name: Jarle Aase
Organization: Jgaa's Internet
Project: War FTP Daemon
 
Join Date: Mar 2005
Location: Bergen, Norway
Posts: 8
So, what you are saying is basically that std::wstring is unsupported, but that I can convert to wstring from UTF8.

What about adding an option to slice2cpp to replace std::string with std::wstring? That will make unicode-programming more comfortable

Jarle
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
Mono and IceSSL Status tkrieger Help Center 6 11-10-2006 09:29 AM
How can I know disconnection status ? laotee Help Center 6 06-02-2005 06:29 AM
about the status of client simpley Help Center 1 04-27-2005 05:04 AM
may I detected the status of a special client simpley Help Center 3 12-19-2003 07:31 PM
Connection Status rhochmuth Help Center 1 10-03-2003 10:57 AM


All times are GMT -4. The time now is 09:22 AM.


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.