Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Encoding
heredite
Hi all!
When I generate a file from a template, I would like to change some character to their entity name or character reference. Ex.: é è ô ù .... to é è ô ù or é è ô ù
I know there is a file named iwpt_encoding.ipl into iw-home/local/config that can change the encoding.
I've tryed to replace this line of code into this file:
return 'UTF-8';
to:
return 'ISO8559-1';
but I get this error when i try to preview or generate a file:
Transcoding failure using: ISO8559-1 at /apps/iwov/iw-home/iw-perl/vendor/lib/TeamSite/I18N_utils.pm line 219.
:/default/main/Aeroplan.com/en/WORKAREA/Content/templatedata/offers/multiplepromotion/presentation/multiplepromotion.tpl
Is it possible to do what I want with iwpt_encoding.ipl?
If yes, what's the good encoding(spelling)?
If no, is there another solution than using a perl script on each template?
Thanks for the help!
Pascal
Find more posts tagged with
Comments
harrij
If you're using VisualFormat to enter the text you can configure it to save the extended characters as entity names or as character reference.
If not, you can use Perl's encode_entities function to convert characters to entitynames in presentation template.
Also putting <iw_pt encoding='ISO-8859-1'/> as the first line of your presentation template should help, but I haven't been able to get this work.