0

I am trying to store my cities streets in a database. The names contain characters like ăîâșț(romanian characters) and öüóőúűéáí (hungarian characters). For example "Agrișelor" is stored as "Agrișelor".

My code is a mess so I am not posting it, basically I am trying to encode end decode using the built in functions of PHP ('utf8_encode', 'utf8_decode').

I would like to get a function type solution for data input and output.

Edit: I forgot, the webpage displays the names recalled from the database correctly, I am getting this problem only in the stored data.

Czoka
  • 118
  • 3
  • 12
  • Have you tried sticking to UTF8 in the DB and on the webpage? – Rob W Mar 19 '14 at 15:04
  • Both the webpage and the database are set to utf8 - for the website `` - for the database and tables `utf8_unicode_ci` – Czoka Mar 19 '14 at 15:08
  • 1
    [What Every Programmer Absolutely, Positively Needs To Know About Encodings And Character Sets To Work With Text](http://kunststube.net/encoding/), [Handling Unicode Front To Back In A Web App](http://kunststube.net/frontback/) – deceze Mar 19 '14 at 15:09

0 Answers0