Problems with data type

Asked

Viewed 31 times

1

My website is popping up like this http://www.adota-me.tk/anuncio.php?id_anuncio=1454792030

With some strange characters. I’ll tell you everything I put.

In php this:

 ini_set('default_charset','UTF-8');
 header('Content-type: text/html; charset-UTF-8');

Now in PHPMYADMIN, the database is defined as utf8_bin, and the data in the columns are defined as latin1_general_ci for each field.

What’s wrong for it to work with ^~ and other accents of the Portuguese language?

  • I suggest you change the collate of the bank to only one, use the utf8_general_ci, both for columns and for the database, if this may bring you headache, also check on the meta tag which charset is being set.

  • <meta http-equiv="content-type" content="text/html; charset=utf-8" />

  • Why don’t you try to match the collate of the bench and the columns to see how it looks..

  • funciounou, although phpmyadmin show strange characters in php this is no longer visible

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.