[Gambas-user] Key.Code problems
Benoit Minisini
gambas at ...1...
Tue Sep 26 18:42:29 CEST 2006
On Tuesday 26 September 2006 18:21, wspinto at ...1405... wrote:
> Hi!
>
> The Key.Code not work with latin caracteres.
>
> Example: (in my computer with gambas 1.9.43)
>
> Run the gambas2
> show the console gambas with F11
> type:
>
> ? Asc("A") => Return 65
> ? Asc("E") => Return 69
>
> ? Asc("Á") => Return 195
> ? Asc("É") => Return too 195
> if Asc("any acentued character (áéíóú...)" => Return too 195
>
> Reguards,
>
> Souza, Wellington
Asc() is for ASCII, and Gambas uses UTF-8 encoding. You must use the String
class to deal with non-ASCII character. The equivalent of Asc() is
String.Code().
Regards,
--
Benoit Minisini
More information about the User
mailing list