in reply to Fine when written to text file, but unreadable when written to database table

It seems that you expect Latin1, but your output is utf-8. Read Encode.
perl -MEncode=from_to -le '$_="Dirección";from_to($_,"utf-8","iso-885 +9-1");print' Dirección

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re: Fine when written to text file, but unreadable when written to database table
  • Download Code