Re: No yet encrypted...



On Mon, 5 Dec 2011 18:27:43 +0100
Glus Xof <gtglus gmail com> wrote:

> >> The problem, here, is that this code works fine with one-byte
> >> characters string but breaks with multi-byte characters strings !
> >
> > It would help if you said what "breaks" means.  Do you mean it
> > throws a conversion exception?   If so then:
> >
> >  std::cout << Glib::ustring::compose("# %1", mess).raw()
> >            << std::endl;
> 
> Thanks, was that... !

You have found the problem, but as I said in my original problem this is
a diagnostic and not the fix. You should not put text into a
Glib::ustring object which is not in utf-8 encoding.  Use a std::string
object instead and don't use the ustring composing functions.

Chris




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]