Answer the question
In order to leave comments, you need to log in
Krakozyabry in mysql database?
I have a mysql database with latin1 encoding and collation latin1_swedish_ci. (only English text is supposed to be used) Website in utf8. Zend Framework 1 on the site uses utf8 for database operations.
Recently, in the database, the values of almost all text fields were replaced with such things as:
value before: Have baby will travel
value after: Ü€l„„&ŽW4ó$ ®ôwzñAº:+T£”ìß‚¬*o
value before: Run of the farm
value after: ·ç›Ú]#æèèèf?6‰a
value before: Movie Maker
value after: ÅÚñ
I tried all the solutions from stackoverflow.com/questions/1344692/i-need-help-fi... but nothing worked .
Also, I still can't figure out if it was an encoding bug or a hack/virus.
Answer the question
In order to leave comments, you need to log in
Try to insert a request on the site immediately after connectingSET NAMES utf8
You've done the encoding, congratulations.
Backup in your hands as the easiest way.
have you tried something similar?
habrahabr.ru/post/137061
???
This does NOT look like an encoding bug.
It seems that random binary data was written to the database
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question