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 problem
Inder
I am facing problem in fetching the data(special characters like german characters, ABC³G) in the tpl , perl script which I am running in my presentation template. Let me try to explain the problem.
My tpl looks like
<?xml version="1.0" encoding="UTF-8"?>
<iw_pt name="abc">
<iw_include pt ='Y:/default/main/branch/STAGING/Common/abcd.tpl' mode='ptlocal'/>
</iw_pt>
abcd.tpl is something like:
<iw_pt>
<![CDATA[
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<html>
]]>
<iw_perl>
$flag="OFF";
<![CDATA[
my $number = iwpt_dcr_value('dcr.number');
my $name = iwpt_dcr_value('dcr.name');
]]>
</iw_perl>
-------------
----------
</iw_pt>
Now I dont get the value of $name properly, although I am using encoding UTF-8 .
Its really urgent, can somebody help.
I am using TS version 5.0.1
Best Regards.
Find more posts tagged with
Comments
Adam Stoller
I think we're missing something here.
(1) You don't seem to be *using* $name anywhere - so I'm not sure where you're expecting it to show up.
(2) You're using the "strict XML" syntax for your PT - yet you have a line of perl code *outside* the CDATA tags in your included PT.
--fish
(Interwoven Senior Technical Consultant)