When I am creating widget from block it have wrong encoding. Souse block is in write encoding and readeable, but widget is not.

For example:
at block: финал Кубка Клуба
at widget: финал Кубка Клуба

What am I doing wrong?

CommentFileSizeAuthor
#1 wrong Cyrillic encoding.jpg33.63 KBkvit

Comments

kvit’s picture

StatusFileSize
new33.63 KB

+1

esteewhy’s picture

Issue tags: +fix

Confirm.

This problem is a side-effect of using a DomDocument API inside embed_widgets_alter_links function in embed_widgets.module:519 file.

The symptoms were passionately described, for example, there. But their solution doesn't work.

Something that works is given here.

That is, need to replace a line #519 at embed_widgets.module with something like:

$dom->loadHTML(mb_convert_encoding($string, 'HTML-ENTITIES', "UTF-8"));

No patches, sorry, but the fix is trivial.

jtsnow’s picture

Title: Problems with Cyrillic encoding » Problems with UTF-8 encoding
Status: Active » Fixed

Thanks for the quick fix, esteewhy. I have tested and committed.

Status: Fixed » Closed (fixed)
Issue tags: -fix

Automatically closed -- issue fixed for 2 weeks with no activity.