Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Десериализации доп. полей из кодировки CP1251 #14

Closed
wants to merge 1 commit into from

Conversation

irbees2008
Copy link
Contributor

No description provided.

}

// Если не получилось конвертировать, то пытаемся изменить кодировку.
$converted = mb_convert_encoding($serialized, 'CP1251');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Для какого случая эта обработка?
Насколько я вижу, при переходе на 0.9.6 есть миграция по конвертации данных из всех таблицы в utf8:
https://github.com/vponomarev/ngcms-core/blob/master/engine/upgrade.php#L88
Оно не работает чтоли?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

При переносе сайта , после конвертации базы, все дополнительные поля исчезают ,из новостей на сайте, и в админке . При этом ,при пересохранении новости ,поля появляются но уже пустые кроме img. Добавочно upgrade.php не конвертирует все таблицы в базе,а задает кодировку всей базы, а таблицы так и остаются в win1251.

@irbees2008 irbees2008 closed this Jun 29, 2020
@irbees2008 irbees2008 reopened this Jul 8, 2020
@irbees2008 irbees2008 closed this Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants