http://www.perlmonks.org/?node_id=591180 encode( “UTF-8”, $possibly_bad_utf8_data );
Perl and Postgresql: Invalid byte sequence for encoding "UTF8"February 27, 2008 · Perl, development, encoding, mod_perl, postgresql, programming, utf-8, utf8 · 1 minhttp://www.perlmonks.org/?node_id=591180encode( “UTF-8”, $possibly_bad_utf8_data );