
14 Jan
2011
14 Jan
'11
5:53 p.m.
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