[ic] Error while interpolating page etc/report: UTF-8 Issue

Gert van der Spoel gert at 3edge.com
Mon Jun 1 12:14:31 UTC 2009


> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org [mailto:interchange-
> users-bounces at icdevgroup.org] On Behalf Of IC
> Sent: Monday, June 01, 2009 1:38 PM
> To: interchange-users at icdevgroup.org
> Subject: Re: [ic] Error while interpolating page etc/report: UTF-8
> Issue
> 
> > > 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 &pound 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
> 
> Hi Gert,
> 
> On the main server I removed the £ symbols and didn't see the error
> again,
> however on a backup server running the same version of IC with UTF-8
> the
> same report template with the £ symbol didn't generate the error. I did
> however get an error on this server from etc/mail_receipt which again
> seems
> to be £ symbol related.

Odd that on your backup server you do not experience the same, but your
installation is?
Or is there a slight difference (for example a space between the pound sign
and the [filter] tag, etc).


Somewhere in Vend/Order.pm you find:
               eval {
                        $page = interpolate_html($page) if $page;
                };
                if ($@) {
                        die "Error while interpolating page $pagefile:\n
$@";
                }

Perhaps you could see what goes into '$page' on your backup server for each
situation to establish more precisely where it goes wrong ... 

As far as I can see the line where the error happens in Interpolate.pm is:

#       LdExpr=$LdExpr
#EOF

    while($$text =~ $LdExpr) {      <-- this line
                $table = $2;


I'm not totally sure though if that is the same version as yours.
This would be in sub tag_labeled_data_row {  ...

I have not been able to reproduce your issue in my local test version, alas.

CU,

Gert



> It would be nice to have the symbols but I could switch to GBP or just
> the
> digits.

For your production environment this sounds like the most sensible thing to
do at the moment, at least to make sure your orders get processed properly.

> Regards,
> Andy.
> 
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users




More information about the interchange-users mailing list