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

Benoit Minisini gambas at ...1...
Sat Nov 10 12:44:53 CET 2007


On vendredi 9 novembre 2007, Stefano Palmeri wrote:
> 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
>

I fixed the bug in the last revision, but why do you need to quote strings 
differently from what does the Quote() function?

-- 
Benoit Minisini




More information about the User mailing list