I noticed that they does not work (ehdn used with jcode), I guess it's because sprintf calls size and not jsize method of string, and jcode does not redefine sprintf (and many other methods).
Is that true and is there any easy tip at least for sprintf method.
On 17/06/06, Bojan Mihelac <li...@mihelac.org> wrote:
> I noticed that they does not work (ehdn used with jcode), I guess it's > because sprintf calls size and not jsize method of string, and jcode > does not redefine sprintf (and many other methods).
> Is that true and is there any easy tip at least for sprintf method.
Paul Battley wrote: > On 17/06/06, Bojan Mihelac <li...@mihelac.org> wrote: >> I noticed that they does not work (ehdn used with jcode), I guess it's >> because sprintf calls size and not jsize method of string, and jcode >> does not redefine sprintf (and many other methods).
>> Is that true and is there any easy tip at least for sprintf method.
> Can you show a short example of the problem?
> Paul.
sure,
sprintf("%-10.10s", "ŠĐČĆŽšđčćž")
should return same string but they get cut to 5 characters only. These are unicode characters for central european languages.
> Paul Battley wrote: >> On 17/06/06, Bojan Mihelac <li...@mihelac.org> wrote: >>> I noticed that they does not work (ehdn used with jcode), I guess >>> it's >>> because sprintf calls size and not jsize method of string, and jcode >>> does not redefine sprintf (and many other methods).
>>> Is that true and is there any easy tip at least for sprintf method. >> Can you show a short example of the problem? >> Paul.
> sure,
> sprintf("%-10.10s", "ŠĐČĆŽšđčćž")
> should return same string but they get cut to 5 characters only. > These are unicode characters for central european languages.
Aie. We gotta take care of that now in our plugin. Thx for the headsup.
-- Julian 'Julik' Tarkhanov please send all personal mail to me at julik.nl