[Gambas-user] Reading international character from a file

Fabien Bodard gambasfr at ...11...
Sun Sep 25 20:58:42 CEST 2005


Le Mardi 20 Septembre 2005 00:19, Andre Saccomani a écrit :
> Hi guys,
>
> I'm trying to make a subtitle adjuster using gambas. until now I succeed in
> open the file, put it into a listview and on. The problem is that
> international characters, like ã,é.. and on are showing as blocks and not
> as I expected.
> Can someone help me with this?

the file use one charset (generally system one) and qt another
Use the conv$ function like that :

MyList.add(conv(sText, System.Charset, Desktop.Charset)

or under Gambas2

MyList.Add(DConv(sText))

Regards,
Fabien Bodard





More information about the User mailing list