WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#4219 closed defect (bug) (fixed)

"character_set_client" should be set to UTF-8 by default

Reported by: foolswisdom Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.2
Component: General Keywords:
Focuses: Cc:

Description

System variable "character_set_client" is set to "latin1" by default, but the characters wordpress is writing into database are not in latin1, but in UTF-8. This results in that the UTF-8 characters are considers as latin1, and are converted to UTF-8 again.

Change History (5)

comment:1 rob1n7 years ago

  • Component changed from Administration to General

comment:2 ryan7 years ago

2.2 sets this for new installs when it does SET NAMES. Nothing is done for existing installs, however. Setting this to whatever the user selects in blog_charset is difficult because blog_charset is stored in the DB. We have to connect to the DB to get the charset.

comment:3 ryan7 years ago

  • Version changed from 2.2 to 2.3

comment:4 rob1n7 years ago

  • Milestone changed from 2.2 to 2.3
  • Version changed from 2.3 to 2.2

comment:5 ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

DB_CHARSET can be set in wp-config.php. Calling that good enough.

Note: See TracTickets for help on using tickets.