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)
Exotic character encoding error in the DCR dropdown
psr
Hi,
TS 6.7.1
FormAPI
I am trying to write the script which can handle the html that has exotic characters like.
Ü (Ü)
The script grab the values from the DB & show for the selection in one of the field drop down.
I am using HTML::Entities (encode_string) to handle the special chatracters
but seems its breaking at characters such as above "Ü" (Ü). Basically it does convert to (Ü) but breaks during substituion. Its expecting to be converted further to "& amp;Uuml;". My worry is if I just substitue "&" to "& amp;" it will break the other regular conversions.
Can somebody refresh my memory how can we handle this?
Thanks
Find more posts tagged with
Comments
Migrateduser
Would this work for you?
$tempValue =~ s/([^\x01-\x7F])/'&#' . ord($1) . ';'/gse;