+ Reply to Thread
Results 1 to 3 of 3

Thread: strange characters

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    16

    strange characters

    Hi , i have that database that stores both username and password of a user from a php script , but i noticed that the date on my database are strange characters . not english at all , so what could cause that error ?

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    35
    Maybe it is the data encoding , Check something like this before the query
    Code:
    mysql_query('SET character_set_results=utf8');
    mysql_query('SET names=utf8');
    mysql_query('SET character_set_client=utf8');
    mysql_query('SET character_set_connection=utf8');
    mysql_query('SET character_set_results=utf8');
    mysql_query('SET collation_connection=utf8_general_ci');

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    16
    Oh thanks it worked

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts