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.