On Thursday 31 August 2006 21:26, you wrote:
> I'm using normal character. but when I send utf, it works ok.
> 
> I have a cgi, which reads the incomming data and sends them to the
> screen, using just std::string. I have not tested it before, but now
> upon your idea, I did:
> 
> when I setup iso encoding (is 88591?) in browser and send some special
> character, they are displayed bad via dfb and in text log (console
> output), everything is OK
> 
> when I setup utf-8 in browser, the text message is going in 2bytes per
> character, and it is displayed fine, but there is mess in text output.
> 
> How could I fix that? I think, swedish characters are in standard iso
> wester europe encoding, so no necessity to use utf8 for me....
> 
> 
> Thanks

hi, 
at first please keep the list cc'ed. not me, but all others are maybe 
interested in a working solution.

the main problem in my point of view is, that you have a windows codepage 
mapping in the ttf font.
linux has iso codepage mapping or utf-8. you may have to write a kind of a 
conversion routine just
before assigning the values to the std::string

best regards
marcel


> 
> On 8/31/06, Marcel Siegert <[EMAIL PROTECTED]> wrote:
> > On Thursday 31 August 2006 20:23, Bu Bacoo wrote:
> > > Hello, please could anyone help me with some hint?
> > hi,
> > >
> > > I try to output special Swedish characters (öåä) with DFB++'s
> > > IDirectFBSurface::DrawString. Instead of seeing them, I can just see
> > > small rectangles.
> > >
> > > They are in std::string buffer, output to std::cout works fine with them.
> > how is your string encoded? normal chars? or do you use utf-8?
> > this is an important thing.
> >
> > > I'm using arial.ttf from swedish windows xp, tried also other fonts,
> > > still the same.
> > >
> > > Please help
> > >
> > > I have not tested in directfb directly or with ++DFB, because it could
> > > be quite big issue to change the whole application, but if someone
> > > knows, it is working in there, I could get and modify the text
> > > formatting :-(
> > >
> > > Thanks
> > > Bu
> >
> > regards
> > marcel
> >
> 

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to