in reply to Perl and Postgresql: Invalid byte sequence for encoding "UTF8"

There's a program from IBM called ICU that might help you. See ICU Source. There's also an excellent article on using ICU. See Encodings in Perl.
  • Comment on Re: Perl and Postgresql: Invalid byte sequence for encoding "UTF8"