in reply to Re: Convert strings with unknown encodings to html (fix your database)
in thread Convert strings with unknown encodings to html

Encoding::FixLatin does appear to be what I was looking for. I replaced the two noted lines with:

$in[$_] = fix_latin($in[$_]) for 0..9;

and everything converted correctly. I integrated this fix into my main program and again everything seems to be converting correctly.

Thank you for your assistance.

  • Comment on Re^2: Convert strings with unknown encodings to html (fix your database)
  • Download Code

Replies are listed 'Best First'.
Re^3: Convert strings with unknown encodings to html
by Anonymous Monk on Jul 01, 2015 at 01:42 UTC

    Great,

    next step should be to track down all the programs that are putting junk inside the database, fix them to put in the correct stuff

    then backup database, and go ahead and fix_latin the whole database, so fix_latin is no longer needed in your display program

    then your database will just have correct data