- or download this
<?xml version="1.0" encoding="UTF-8"?>
<foo>
...
</property>
</definition>
</foo>
- or download this
#!/usr/bin/perl
use strict;
...
$property->set_text( $htmlEncoded );
# print "\n\n\n" . $property->text ."\n\n\n";
}
- or download this
perl -CS -pe 's/([^[:ascii:]])/sprintf("&#%d",ord($1))/eg' < orig.xml
+> encoded.xml