[Gambas-user] Some more questions

Benoit Minisini gambas at ...1...
Tue Jan 25 11:14:57 CET 2005


On Monday 24 January 2005 10:39, Daniel Campos wrote:
> Laurent Duperval escribió:
> >On Sun, 23 Jan 2005 19:23:47 +0100, Daniel Campos
> >
> ><daniel.campos at ...338...> wrote:
> >>Gambas uses UTF-8 internally, so you can use the Conv$ function in order
> >>to convert, retireve and display data from a TextArea...
> >
> >Hmmm.... Ok, let me figure out what the problem is. I have data in a
> >Postgres database and it reads properly in Vim (which uses UTF-8, I
> >think) but in a TextArea, the accented characters are replaced by two
> >blocks. Maybe it's stored in Unicode or UTF-16.
>
> Yes, usually when there are two "black blocks" per each character
> the codification is UTF-16, so you could do:
>
> TextArea1.Text=Conv(Data,"UTF-16","UTF-8")
>
> Regards,
>
> D. Campos
>
>

Connection.Charset will (normally) tell you what charset is used by your 
database. GUI widgets use Desktop.Charset.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list