Problems with . load accentuation

Asked

Viewed 60 times

1

The Site is all right, database, files and put everything in utf-8, but when I will use the

$("#aviso").load("inc/aviso.php");},1000);

It results in these characters , when I access the warning.php file it is with the accents all right.

I’m using the standard utf-8 of the incision, I don’t know what else to do.

I even used

header ( "Content-Type: text/html; charset=utf-8" ) ;

mysql_query ( "SET NAMES 'utf8'" ) ;

mysql_query ( "SET character_set_connection=utf8" ) ;

mysql_query ( "SET character_set_client=utf8" ) ;

mysql_query ( "SET character_set_results=utf8" ) ;

But I was unsuccessful.

  • This problem is old of many kk, we have got a solution now, but there in front it will return kk

  • Check if you are saving the files in OS as UTF-8, if you are using Windows there is the possibility that they are being saved in ISO, which will result in conflict when read by the browser, even more if you are forcing a header that does not reflect the encoding of the file being delivered.

  • As said up there, The Site is all right, database, files and put everything in utf-8,

  • Looks like . load is reading wrong.

  • The goal is right ? <meta charset="utf-8">, sometimes calling dynamically from bad ):

  • I am giving a select in the warning.php I deleted everything and typed the same test text I was using for the database, and the accents will pick up, the problem is in mysql select

  • I used an echo utf8_encode, it worked, I don’t know why I’ll run after -.-'

  • This may help you: http://answall.com/a/43205/3635

Show 3 more comments

1 answer

0

Open the files in Notepad++ and go to the menu button formatar and select the option: Codificação em UTF-8 (sem BOM)

  • I always use UTF-8 without good, that wasn’t the problem.

Browser other questions tagged

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