Make WordPress Core

Opened 7 years ago

Last modified 3 years ago

#40675 new defect (bug)

Accented letter at end of line displays wrong

Reported by: niente0's profile niente0 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.4
Component: Editor Keywords: needs-screenshots reporter-feedback
Focuses: Cc:

Description (last modified by noisysocks)

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 (3)

#1 @0xcrypto
7 years ago

  • Keywords needs-screenshots added

Working fine here. Please explain it more.

#2 @niente0
7 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 7 years ago by niente0 (previous) (diff)

#3 @noisysocks
3 years ago

  • Description modified (diff)
  • Keywords reporter-feedback added

Hi @niente0. Are you still experiencing this? What is the database collation set to?

Note: See TracTickets for help on using tickets.