O
O
Oleg2012-10-15 14:03:11
MySQL
Oleg, 2012-10-15 14:03:11

Encoding in the database table

Good afternoon. There is a table in the database. For some reason, it received information with different encodings. Part in cp1251 and part in utf-8. Now you need to make a backup. Tried already through phpmyadmin and through sypex dumper with different encoding. At the output, I get a part in a curved encoding of the form

143,18,\N,\N,\N,\N,\N,\N,\N,\N,\N,\N,\N,\N,\N,\N,'Как пойти в поход на лыжах?','\n
and a part of a normal one.

What can be done to bring it to one view with a normal encoding?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
AGvin, 2012-10-15
@AGvin

Please do "SHOW CREATE TABLE <table_name>;" and throw off the conclusion in addition to the question, so it will be clearer.

L
lubezniy, 2012-10-15
@lubezniy

Perhaps I would try to do the conversion with a script, for example, in PHP. There are not so many records, so the selection of rows in the table for recoding can be done manually

A
Andrey Burov, 2012-10-15
@BuriK666

"Part" are different records in one table, or in one UTF8 table, in another cp1251?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question