[ic] Error while interpolating page etc/report: UTF-8 Issue
ic at tvcables.co.uk
Tue Jun 2 11:24:01 UTC 2009
> -----Original Message-----
> From: interchange-users-bounces at icdevgroup.org [mailto:interchange-users-
> bounces at icdevgroup.org] On Behalf Of Stefan Hornburg (Racke)
> Sent: Monday, June 01, 2009 3:41 PM
> To: interchange-users at icdevgroup.org
> Subject: Re: [ic] Error while interpolating page etc/report: UTF-8 Issue
> IC wrote:
> >>> 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,
> >>> 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,
> >> 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
> > 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
> > to be £ symbol related.
> > It would be nice to have the symbols but I could switch to GBP or just
> > digits.
> Do you have more than one catalog running on these server(s)?
> If yes, do they have UTF-8 enabled?
After converting all the template files to UTF-8 encoding I came across even
more issues, I started seeing this in the debug when IC was trying to send
emails from the ship_notice template, note all the files that are UTF-8
encoded seem to start with the 3 odd characters ï»¿ - is this correct??
The debug showed:-
Unable to send mail using /usr/sbin/sendmail
Rest of message looked ok.
I have now had to encode the templates back to ISO-8859.
To stop the initial problem of "Error while interpolating page etc/report:"
I have had to remove dofile from safeuntrap in interchange.cfg, this now
leaves the following error with one regex but at least things seem to be
Safe: 'do "file"' trapped by operation mask at
/usr/lib/perl5/5.8.8/utf8_heavy.pl line 182.
Compilation failed in require at /usr/lib/perl5/5.8.8/utf8.pm line 17.
It seems to be in quite a mess, any suggestions?
More information about the interchange-users