Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Convert strings with unknown encodings to html (fix your database)

by Pascal666 (Scribe)
on Jun 30, 2015 at 19:22 UTC ( #1132678=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1132678]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2020-10-23 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (234 votes). Check out past polls.

    Notices?