Skip to content

Magento Widgets only support Latin1 charset? #5708

Closed
@pantaoran

Description

@pantaoran

I'm having trouble using Chinese titles in my widgets that I use inside static CMS pages. My Magento 2.1.0 is highly customized and I don't really have time to install a stock version right now, so I'm reporting this anyway, hoping that someone could try and reproduce it since the steps are very simple.

The real problem that I have is more complex than this, but let's start here.

Steps to reproduce

  1. Install Magento from 2.1.0 branch.
  2. Login to backend, navigate to Content -> Pages
  3. Open an existing CMS page (or create a new one)
  4. Make sure the TinyMCE editor is showing
  5. Insert a widget with a customizable text field, for example "Catalog Category Link"
  6. Set the "Anchor Custom Title" to "中文"
  7. Toggle "Show / Hide editor" to display raw source

Expected result

Chinese characters
{{widget type="Magento\Catalog\Block\Category\Widget\Link" anchor_text="hello" title="中文��" template="category/widget/link/link_inline.phtml" id_path="category/5"}}
(Apparently github also has some issue displaying this correctly here?)

Actual result

Garbled Latin1 characters
{{widget type="Magento\Catalog\Block\Category\Widget\Link" anchor_text="hello" title="中�" template="category/widget/link/link_inline.phtml" id_path="category/5"}}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions