[redland-dev] unsigned char* to std::wstring?

Joe Andrieu joe at switchbook.com
Thu Jun 3 10:23:05 CEST 2010


I understand that Redland uses UTF-8 internally and in its API.

However, it isn't clear to me the right way to convert from those 
unsigned char* strings to std::wstring or std::string classes, which is 
what my program uses internally.

I have the code "working" using std::string, but I would bet that my 
code wouldn't handle non-ascii characters properly.

Can anyone provide some guidance?

-j

-- 
Joe Andrieu
joe at switchbook.com
+1 (805) 705-8651
http://www.switchbook.com


More information about the redland-dev mailing list