perl2php, +mysql string encoding (+CodeIgniter)

lostanda

New Member
Seriously, I'm lost in the UTF-8 world. Here is my situation (everything is happening on a mac):
  • I get a web service response with perl+lwp and store it in mysql database; response is encoded in UTF-8 and I use DBI module to store data in Mysql UTF-8 table (urf8_general_ci encoding);
  • when I get strings from database with CI model; output display gets garbled like UTF-8 characters displayed as ASCII; however when I try to convert that string with iconv or mb_convert_encoding - nothing happens; I get more gibberish in php's output.
  • When I select a string via DBI and print in console with perl I see proper encoded hieroglyphs.
So the question is - how can I make my php scripts to show hieroglyphs in proper encoding.
 
Back
Top