[Gambas-user] Re: Using serial component for plc comunications

Daniel daniel.campos at ...338...
Wed Jun 2 22:11:47 CEST 2004


> 
> What about the incoming chars? Are they converted to UTF8 ?
> 

No, you receive each byte as it is, however, if you try to put the
string in a Text Box, for example, you will find extrange characters
instead of the desired 'ñ' 'á', etc...

So, to do it in the right way:

--> Receive data --> Data is stored in the string correctly (but
with the codification used by the device) --> Now you should use 
conv$ again to convert from device codification to UTF-8 --> Then,
put the converted string in the Text Box

Saludos,

Daniel Campos



> 

> www.websdelsur.com.ar
> www.lahueya.com.ar
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the new InstallShield X.
> >From Windows to Linux, servers to mobile, InstallShield X is the one
> installation-authoring solution that does it all. Learn more and
> evaluate today! http://www.installshield.com/Dev2Dev/0504
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list