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)
Funky A character
raghavsrinath
Hi,
I need help with this one when ever i create some html stuff using the visualformat editor on an DCR when i see at the out put a Funky A character is found on my pages ,has any one of you people have gone through this problem,if so is there a fix to it ,any help is appreciated
-raghav
Find more posts tagged with
Comments
Migrateduser
I believe what you are looking for is here:
https://support.interwoven.com/kb/kb_show_article2.asp?ArticleID=45836
manju166
try to insert the UTF lines in your template code,
we had the same problem
for example:
<?xml version="1.0" encoding="UTF-8"?>
<iw_pt name="xyz">
<![CDATA[<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Manju
Migrateduser
When changing the encoding that you use, you may encounter a problem with the template not using the " properly. You have fixed your A problem, but now have a new one. The best way I have found to fix the A problem is to include this in your presentation script:
$story =~ s/Â/<![CDATA[\ \;]]>/g;
what this does is searches throughout your string and replaces all the special A characters with a blank space. This solution worked for us.
carnix
I have that same problem. Here is how I delt with it: (note the funky A character is the 7th one down in the hash)
sub filter
{
%items = (
"“" => "\"",
"”" => "\"",
"’" => "'",
"\047" => "'",
"\240" => "",
"Â" => "",
"\251" => "©",
"\256" => "<sup>®</sup>",
);
foreach $key (sort keys %items){
$lookfor = $key;
$replacewith = $items{$key};
$output =~ s|$lookfor|$replacewith|ig;
}
foreach $key (sort keys %items){
$lookfor = $key;
$replacewith = $items{$key};
$output =~ s|$lookfor|$replacewith|ig;
}
}
I also have all the output of a tpl being placed into a single variable ($output) so that the last thing on all tpl files is:
&filter;
iwpt_output($output);
Anything I need to have replaced in the tpl's output stream can just be placed in that hash. sometimes I have to single out regexes for logical reasons, but this sub tends to capture 95% of substitutions.
hope it helps!
.c
Edited by carnix on 08/23/02 12:23 PM (server time).
amjoe
Hi there,
well you can solve it easily just do the following on your PT.
In the head tags add the following
<![CDATA[<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">]]>
This should solve your problem , ENJOY
Thanks
Antony J Peter
tecthis
check the <iw-home>local/config/iwpt_encoding.ipl. Make sure your encoding is set to the proper one. This will fix the funny A chars systemwide. Ours is set to
return 'UTF-8';
You can also place IF statements in this file if different branches need different encoding.
Hope this helps,
Alex...
Alexander Correaa
alex_correa@baxter.com