I have a problem with my input texts from forms. When the user enters in a text form input something like "test ăĂșșțîâ" CodeIgniter query saves to the database after getting post input something like "test ???????". I have 2 variants: 1. first is to convert "ăâîșț" and "ĂÂÎȘȚ" TO "aaist" and "AAIST". 2. to find a method to save accented characters in DB without saving like "????"
I'm already using html_purify and strip_tags to input. Does someone have some ideas?
Here is my code to GET input form:
strip_tags(html_purify($this->input->post("postandclose", true)));