thx Andy,
I'll keep that one close. When my program will be ready to perform some
tests with UTF8 encoding, I'll try your solution.

regards,
Nicolas


Le Wed, 12 Aug 2015 16:02:54 +0000,
Andy Ling <Andy.Ling at quantel.com> a ?crit :

> > Actualy (maybe I wrong) but it leads to the same result in that case
> > that using `reinterpret_cast<const char *>`
> > 
> > my problem about doing that is I don't know if it's safe...
> > I mean, should I not get some mess with some char code
> > (UTF8)?
> > 
> 
> You could create a new unsigned string type
> 
> typedef std::basic_string <unsigned char> ustring;
> 
> ustring s = sqlite3_column_text(......);
> 
> Maybe that would do what you want and preserve any
> odd UTF8 characters.
> 
> Regards
> 
> Andy Ling
> ---------------------------------------------------------------------------------------
> This email has been scanned for email related threats and delivered
> safely by Mimecast. For more information please visit
> http://www.mimecast.com
> ---------------------------------------------------------------------------------------
> 
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to