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
  • Does this happen with all blocks, or just this custom block? – Jacob Peattie Commented Oct 8, 2020 at 13:37
  • I'm not sure. Is there a core dynamic block? Content in blocks like p is fine. – sosere Commented Oct 8, 2020 at 16:23
  • Works, but just als (Super)Administrator. This problem comes up if it#s done with an editor account. – sosere Commented Oct 15, 2020 at 16:21
  • You should edit this into your first answer, not post it as a second answer. It does not stand alone as an answer. – Chenmunka Commented Oct 15, 2020 at 17:15
  • @sosere do not post replies as answers unless your reply is the solution to your question. I know you can't leave comments as a user with only 1 rep, but that doesn't mean you should abuse the system to get around it. If you need to add information to your question, you can use the edit link to edit it in – Tom J Nowell Commented Oct 15, 2020 at 17:58
Add a comment  | 

1 Answer 1

Reset to default 0

Solved 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