WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#40675 new defect (bug)

Accented letter at end of line displays wrong

Reported by: niente0 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.4
Component: Editor Keywords: needs-screenshots
Focuses: Cc:
PR Number:

Description

In Wordpress (last version) if a line of text ends with an accented letter (ie "Università"), the accented letter is displayed as a "?" (unknown character). If replaced with à it displays correctly.
It happens on all wordpress sites I have (different plugins, different themes).

Change History (2)

#1 @0xcrypto
2 years ago

  • Keywords needs-screenshots added

Working fine here. Please explain it more.

#2 @niente0
2 years ago

I did further testing. Since on local server it doesn't happen, I created two similar pages, saved and compared their html.

Local page has correct à-è-ì-ò-ù 1-byte characters, while pages coming from remote server encode them with 2-bytes (for example è is encoded as C3 A8).
Although I don't know why, this should not represent a big problem, except for the fact that if the 2-bytes char is at the end of line, the second byte is cut, leaving only C3 (unknown char).

Other details: Content type in response header is "text/html; charset=UTF-8" for both, there is no BOM, I have "define('DB_CHARSET', 'utf8');" in wp-config.php. Both local and remote sites have same plugins, and it happens also deactivating them all.

Any suggestion? Thanks

Last edited 2 years ago by niente0 (previous) (diff)
Note: See TracTickets for help on using tickets.