<?xml version="1.0" encoding="windows-1252"?>
<node id="1015961" title="Re: Replacing non ascii in string" created="2013-01-30 00:04:20" updated="2013-01-30 00:04:20">
<type id="11">
note</type>
<author id="965102">
Kenosis</author>
<data>
<field name="doctext">
&lt;p&gt;Perhaps [http://search.cpan.org/~sburke/Text-Unidecode-0.04/lib/Text/Unidecode.pm|Text::Unidecode] would be helpful (please forgive the lack of complete &lt;c&gt;code formatting&lt;/c&gt;, as doing so eliminates displaying the characters the module decodes):&lt;/p&gt;
&lt;c&gt;
use strict;
use warnings;
use utf8;
use Text::Unidecode;

&lt;/c&gt;&lt;p&gt;my $string = q/‘ and ’ “ and ” and ä/;&lt;/p&gt;&lt;c&gt;

print unidecode($string);
&lt;/c&gt;
&lt;p&gt;Output:&lt;/p&gt;
&lt;p&gt;
' and ' " and " and a
&lt;/p&gt;</field>
<field name="root_node">
1015956</field>
<field name="parent_node">
1015956</field>
</data>
</node>
