[Gambas-user] character code ??

Klaus Schumacher schumacher-k at ...20...
Tue Jun 10 18:07:58 CEST 2003


Hi Benoit,
thanks for your help, it works with Conv$

Klaus



Benoit Minisini wrote:
> Le Lundi 26 Mai 2003 19:25, Klaus Schumacher a écrit :
> 
>>Hello everybody,
>>I've done a small program in gambas 0.44 which reads a file with data
>>form my palm, converted with the tool pdb2csv. Now I've updated gambas
>>and the german characters (ä,ö, ü) in the file are not longer readable.
>>I suppose it's because of the UTF-8 charset changing since 0.50 ?!
>>But what can I do ?
>>
>>Klaus
>>
> 
> 
> Hi Klaus,
> 
> You canuse the Conv$() function that can convert from any charset to any other 
> charset.
> 
> Now in Gambas, all qt controls use UTF-8. Every string coming from and sent to 
> the interface are in UTF-8.
> 
> Every string sent to a terminal, or into a database are sent as is, so you 
> must be careful with the charset of the data destination.
> 
> For example, for putting a file downloaded from a palm into a textbox, you may 
> have to do the following :
> 
> MyTextBox.Text = Conv$(MyPalmData, "ISO-8859-1", "UTF-8")
> 
> Tell me if it works,
> 
> Regards,
> 






More information about the User mailing list