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)
Sometimes enter is converted to  but not always !
RoseRuby
Hi all
I need a help which is very important and I need it as soon as possible
Here is my problem
I am generating an xml file out of the DCR where the enter characters are converted to a special character  but sometimes it simply gives me space .This results in XML being badly formed. Can someone help me either with a regular expression that may match the character  or else can help me make sure enter is always converted to this character Â.
Any help is very greatly appreciated. Please help me out soon. I am using XML Parser
Teamsite 6.5
Unix server
Pls!!
Thanks in advance!!
Find more posts tagged with
Comments
Migrateduser
Hi,
You can try the following code to convert the characters into to their numeric equivalent, then see which one of those in the output you can pattern match to parse out:
$content =~ s/([^\x01-\x7F])/'&#' . ord($1) . ';'/gse; #change all non-US-ASCII characters to numeric equivalent
$content =~ s/Â//gs;
The above will parse out the A with tilde on top.
Hope that helps!
RoseRuby
Thank you for the response .It helped me.