|
Boost : |
Subject: Re: [boost] [General] Always treat std::strings as UTF-8
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-01-14 12:53:03
At Fri, 14 Jan 2011 19:37:23 +0200,
Peter Dimov wrote:
>
> > Also, is there any use in trying to get the difference into the type
> > system, e.g. by using some kind of wrapper over std::string that
> > gives it a distinct "utf-8" type?
>
> This could help; a hybrid right+wrong library ought probably be able
> to take either utf8_string or non_utf8_string, with the latter using
> who-knows-what encoding. :-)
>
> The "bite the bullet" solution is just to demand "right" libraries and
> use UTF-8 throughout.
OK, thanks. Consider me +1 on whatever you recommend.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk