[Gambas-user] Quote() doesn't manage special italian chars - bug?

Stefano Palmeri rospolosco at ...152...
Fri Nov 9 21:03:32 CET 2007


Alle 20:11, venerdì 9 novembre 2007, Benoit Minisini ha scritto:
> On vendredi 9 novembre 2007, Stefano Palmeri wrote:
> > Hi, Benoit
> >
> > Playing with Quote() in a SHELL command I discovered that
> > Quote() is not able to manage special italian chars. I don't
> > know if the bug(?) exists with other languages.
> >
> > Here is an example and the result:
> >
> >  PUBLIC SUB Main()
> >
> >   PRINT Quote("è, più, però, perché")
> >
> > END
> >
> > "\xC3\xA8, pi\xC3\xB9, per\xC3\xB2, perch\xC3\xA9"
> >
> >
> > Stefano
>
> Actually, if you type
>
> PRINT "\xC3\xA8, pi\xC3\xB9, per\xC3\xB2, perch\xC3\xA9"
>
> you should get the original string.
>

Yes, but it's not very comfortable :-)

> But apparently there is a bug in the compiler. You have to add a space at
> the end of the string. I will fix it as soon as possible.

Anyway, adding a space didn't solve the little bug. At the
moment I use a PersonalQuote() function as workaround.

Regards,

Stefano

>
> Regards,




More information about the User mailing list