Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#59546 new defect (bug)

Gutenberg invalid json due to UTF-8 character E2 80 AF

Reported by: jungb's profile jungb Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.3.2
Component: General Keywords: needs-patch
Focuses: Cc:

Description

I just inserted a text on a page, hit publish and was getting an error, which states, that the response is not a valid JSON response.

Further Inspection showed, that this error is occuring, if the text has the following char in it:

U+202F	 	e2 80 af	NARROW NO-BREAK SPACE

Here is the plain text, the char is occuring betwenn "auszuwerten" and "oder"

<p>auszuwerten oder Werbung anzuzeigen.</p>

Attachments (2)

Gutenberg_Bug_invalid_JSON.PNG (16.3 KB) - added by jungb 5 months ago.
the occuring error
Gutenberg_Bug_Char.PNG (91.1 KB) - added by jungb 5 months ago.
the char in unicode inspect

Download all attachments as: .zip

Change History (5)

@jungb
5 months ago

the occuring error

@jungb
5 months ago

the char in unicode inspect

#1 follow-up: @Presskopp
5 months ago

Related: #44958

#2 in reply to: ↑ 1 @jungb
5 months ago

Replying to Presskopp:

Related: #44958

Sorry, I dont understand why it is related? This is a bug in JSON response in Gutenberg Editor with a NNBSP char from UTF-8 Charset, not a &nbsp; of HTML code, which should be totally different. Also no title or post name is involved here, it is about post content.
Can you explain please?

#3 @Presskopp
5 months ago

For me it seems/seemed related because of the specific character code, no more, no less

Note: See TracTickets for help on using tickets.