pedrobcabral Posted June 29, 2007 Share Posted June 29, 2007 Hello I am having some trouble when inserting data from php to mysql database, the accents just don't go. Example with the text "Olá Bragança". - Inserting to database with phpMyAdmin, outputs "Olá Bragança". OK - Echo from the .php page on the .php page outputs "Olá Bragança" as it is on the form field. OK - Inserting to database from .php page, outputs "olá ragança". NOT OK. How can I solve this situation? By the way I don't know if this has anything to do with. By I'm from Portugal and my phpMyAdmin Collation is set as "latin1_swedish_ci" as default. And I don't remember having this problems when I got in touch with php some months before. Thank you. Link to comment https://forums.phpfreaks.com/topic/57762-how-to-insert-on-mysql/ Share on other sites More sharing options...
per1os Posted June 29, 2007 Share Posted June 29, 2007 On the page that is sending the data, make sure the charset is defined and is what you need it to be, you may try using UTF-8 for the database and the page. Link to comment https://forums.phpfreaks.com/topic/57762-how-to-insert-on-mysql/#findComment-286081 Share on other sites More sharing options...
pedrobcabral Posted June 29, 2007 Author Share Posted June 29, 2007 By defauly the page with sending data is already UTF-8, I've putted the database also but still it is not working, any extra help? Link to comment https://forums.phpfreaks.com/topic/57762-how-to-insert-on-mysql/#findComment-286108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.