jquery - MySQL, PHP, JavaScript UTF-8 Problem with swedish letters (Everything Tested - Nothing Works) -


OK, so I know that this has been discussed millions of times. And I have seen billions of attempts to solve the problem and in most cases they are but in my case, nothing still wants to work.

I have all my files that are encoded with UTF-8 (no one remembers, many times are controlled) and I have my entire database, tables and everything that is encoded as utf8_general_ci (Tried without utf8_unicode_ci and utf8_bin of the result) but still I get "? -cube" everywhere instead of my Swedish characters?

I have done some tests and have come to the conclusion that this is a jquery load and the post call is responsible for the problem. If I load my php-file "load-folders.php" then correct me ¥ ÃÆ'à ¢ â,¬Å¡Ãƒâ € šÃ, One ?? One ?? But even though the main file is saved as "index.php" and when it calls jquery load ('load-folders.php') then utf8 is encrypted, so I still get faulty letters. Yes, jquery.js also have utf-8 so my stylesheet and everything else is what i do not really get it, what is the other thing which causes a problem when using javascript jquery to load a file in another file May be standard UTA F-8 is considered, so it should work.

Anyone who is able to help me, I love him.

Thanks in advance!

I had a problem like this. The only thought was to work:

  mysql_query ("SET NAMES utf8");   

Type it before your mysql query, such as:

  mysql_query ("SET NAMES utf8"); $ Q = mysql_query ("SELECT * FROM ...") or die ('Error:' Mysql_error ());   

You can read the comments here:

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -