[Gambas-user] Problema em Format( ) - Problem in Format ( )

Daniel Campos daniel.campos at ...338...
Sun Mar 27 15:56:08 CEST 2005


lbAudio wrote (in english):

There's a problem when I try to show the week day name (in Portuguese). 
Extrange
characters are shown.

--- Daniel ---

This problem also happens in Spanish, as Saturday is "Sábado" both in 
Postuguese
and Spanish.

I think the problem is that Format() calls a function from glibc to 
obtain the week day
name. This function returns the name encoded in the system charset, but 
in Gambas
all is UTF-8. I think this is a bug, and should be fixed returning the 
value converted
to UTF-8. Meanwhile, if this fails:

Message ( Format(myDate,"dddd"))

You can replace it by:

Message ( Conv( Format(myDate,"dddd"),System.Charset,Desktop.Charset ) )


I think this problem can happen also in Frech with the following command:

Message ( Format(myDate,"mmmm"))

When month is : February, August or December (Février,  Août or Décembre)

Regards,

D. Campos





More information about the User mailing list