[ic] Error while interpolating page etc/report: UTF-8 Issue
IC
ic at tvcables.co.uk
Mon Jun 1 10:41:56 UTC 2009
> > Hi folks,
> >
> > I am running IC 5.6.0 with UTF-8, I get the following error message
> > which I
> > think is due to having the GBP £ symbol in the etc/report template, the
> > error I get is:-
> >
> > Error during creation of order routing main:
> > Error while interpolating page etc/report:
> > Can't find Unicode property definition "Word" at
> > /usr/local/interchange/lib/Vend/Interpolate.pm line 3513.
> >
> > Does anyone know how I can display the £ symbol in the report without
> > getting this error, as it is plain text I cannot use £ or the
> > other
> > variants.
>
> And did you try without the £ symbol and then the error disappeared, just
> to
> be sure it is related?
> Is the £ symbol properly converted to UTF-8?
>
>
> CU,
>
> Gert
By the way, I was displaying the £ symbol using this in etc/report:-
£[filter op="sprintf %.2f" interpolate=1][shipping noformat=1][/filter]
The sprintf filter is defined in catalog.cfg :-
CodeDef sprintf Filter
CodeDef sprintf Routine <<EOR
sub {
my ($value, $name, $fmt) = @_;
if ($fmt) {
return sprintf($fmt, $value);
} else {
return $value;
}
}
EOR
Andy.
More information about the interchange-users
mailing list