Re: string problems



Hubert Figuiere schrieb:
> On Thu, 2007-10-04 at 21:02 +0200, Philipp Klaus Krause wrote:
> 
>> however when I try to output the line using
>> std::cout << line << "\n";
>> I get a Glib::ConvertError.
>> std::cout << linetmp << "\n";
>> works fine.
>>
>> I tried using the following line (I'm trying to write an assembler):
>> add     𝔐, v1, v2
>> lines containing ASCII only work fine.
> 
> line is a Glib::ustring, right?

yes.

> 
> it expect a proper UTF-8 stream.... as you expained you have
> non-ASCII :-) make sure they are valid UTF-8.

I have LANG=de_DE.UTF-8, teh line looks fine when I display it using cat
(I created the file using gedit).




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