#34330Encoding error in flexform sections if backend is not UTF-8
Description
- introduced a regression, because the inline javascript was encoded twice. This was fixed in #32422 but this unfortunately introduced a regression for non UTF-8 backends.
The reason for the latter is that json_encode can only handle UTF-8 encoded strings.
Solution:
Encode the string to UTF-8 before handing it over to json_encode
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.