Hi,

from my experience this is mostly a character encoding problem. I
noticed these errors by not using WString::fromUTF8() or if you use
latin1 strings as plain UTF8 strings.

Within our projects all source code uses UTF8 encoding:

WString s = "Müller"; // will issue such an error
WString s = WString::fromUTF8("Müller"); // is save

See also WString::setDefaultEncoding().

Regards,
Stefan

Am 10.07.2014 23:20, schrieb Jeffrey Scott Flesher Gmail:
> I am reading in from an XML file, a very long string of HTML using RAPIDXML:
> std::string mypagebottom(nodeAttrib->value(), nodeAttrib->value_size());
> then I write it to the database:
> videoDb->pagebottom = mypagebottom;
> and even
> videoDb->pagebottom = mypagebottom.c_str();
> Originally I was using all strings, but tried to fix it by defining them
> as WString:
> Wt::WString pagebottom;
> Wt::Dbo::field(a, pagebottom,       "pagebottom");
> 
> It seems to have written the data, is this a problem that I can fix, if
> so how?
> 
> I do not see an overloaded WString function that takes value and size
> like string does,
> is there a better way to write this that will avoid this message?
> 
> Thanks
> 
> 
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> 
> 
> 
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
> 


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to