Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unicode in C++
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mreiland
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2003
Posts: 99

PostPosted: Sun Jun 18, 2006 10:38 pm    Post subject: Unicode in C++ Reply with quote

I'm getting ready to sit down and start writing a new app, and I'm wondering about C++'s support of Unicode, more specifically UTF-8. I've read about problems with wstring, things such as wofstream throwing away the first byte, etc. Does anyone have any experience with this, and if so, what do you think the best solution would be?
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sun Jun 18, 2006 11:43 pm    Post subject: Reply with quote

You may want to check out Glibmm's ustring class. :)
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
dmitchell
Veteran
Veteran


Joined: 17 May 2003
Posts: 1159
Location: Austin, Texas

PostPosted: Sun Jun 18, 2006 11:56 pm    Post subject: Reply with quote

There's always QString from QtCore.
_________________
Your argument is invalid.
Back to top
View user's profile Send private message
mreiland
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2003
Posts: 99

PostPosted: Mon Jun 19, 2006 1:11 am    Post subject: Reply with quote

Unfortunately QT isn't an option, and I'm not a fan of the GPL/LGPL, so I guess I'll have to roll my own.

Are there any resources, or any particular books, everyone would recommend for doing this? I would like to keep the string class as close to std::string as possible.

Thanks.
Back to top
View user's profile Send private message
nom de plume
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2006
Posts: 104

PostPosted: Mon Jun 19, 2006 3:54 am    Post subject: Reply with quote

don't the boost libraries have unicode support?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum