[wp-trac] [WordPress Trac] #27333: update_option() truncates the option value

WordPress Trac noreply at wordpress.org
Sun Mar 9 15:10:34 UTC 2014


#27333: update_option() truncates the option value
--------------------------+-----------------------------
 Reporter:  bmthemes      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.8.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When updating an option with a value which contains a special character
 the value is truncated (example: I tried to insert 'testºthis' and I ended
 up with only 'test' in the database).

 I noticed replacing define('DB_CHARSET', 'utf8'); with
 define('DB_CHARSET', 'utf-8'); fixed the issue.
 Is there a reason 'DB_CHARSET' is set to 'utf8' instead of 'utf-8' ?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27333>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list