admin管理员组文章数量:1319957
After update to 5.5.1 German umlauts in dynamic block properties ( strings ) are incorrectly encoded/saved in the database.
Something like this as request:
<!-- wp:hsu/mitarbeiterblock {"dataPostanschrift":["Universität","Fakultät für Elektrotechnik",""],
becomes (response & db):
<!-- wp:hsu/mitarbeiterblock {"dataPostanschrift":["Universitu00e4t","Fakultu00e4t fu00fcr Elektrotechnik",""]
To reproduce, modify a request and insert umlauts like öäü in properties of a block.
Is there something to solve this?
After update to 5.5.1 German umlauts in dynamic block properties ( strings ) are incorrectly encoded/saved in the database.
Something like this as request:
<!-- wp:hsu/mitarbeiterblock {"dataPostanschrift":["Universität","Fakultät für Elektrotechnik",""],
becomes (response & db):
<!-- wp:hsu/mitarbeiterblock {"dataPostanschrift":["Universitu00e4t","Fakultu00e4t fu00fcr Elektrotechnik",""]
To reproduce, modify a request and insert umlauts like öäü in properties of a block.
Is there something to solve this?
Share Improve this question edited Oct 8, 2020 at 16:21 sosere asked Oct 8, 2020 at 13:24 soseresosere 12 bronze badges 5 |1 Answer
Reset to default 0Solved myself. The rest response ist fine. Important is not the raw response but the json encoded representation. Couse of my problem war editing the files with vi. VI reencoded the files itself. PHP & JS files need to be encoded as utf8.
本文标签: jsonWrong encoding of dynamic block properties problem
版权声明:本文标题:json - Wrong encoding of dynamic block properties problem 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742059669a2418504.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
edit
link to edit it in – Tom J Nowell ♦ Commented Oct 15, 2020 at 17:58