[wp-trac] [WordPress Trac] #21109: maybe_unserialized fails to unserialize multibyte strings (contains solution)

WordPress Trac noreply at wordpress.org
Wed Apr 24 22:31:39 UTC 2013


#21109: maybe_unserialized fails to unserialize multibyte strings (contains
solution)
-----------------------------------------+------------------------------
 Reporter:  veedeezee                    |       Owner:
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  General                      |     Version:  3.4
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |
-----------------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch dev-feedback => has-patch reporter-feedback


Comment:

 Replying to [comment:5 dReiska]:
 > This bug seems to be affecting Options API too.

 Related: #24180

 > Instead of an array, string of serialized array is returned.

 Could not reproduce with your code. This is what I got:
 {{{
 array(1) { ["test"]=> string(14) "Jotain tähän" } array(1) { ["test"]=>
 string(14) "Jotain tähän" }
 }}}

 Is the file with this code saved in UTF-8 (without
 [http://en.wikipedia.org/wiki/Byte_order_mark byte order mark])?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21109#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list