[wp-trac] [WordPress Trac] #11034: AJAX requests stored as UTF-8 even if a non-UTF-8 charset is in use

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 14 18:53:02 UTC 2012


#11034: AJAX requests stored as UTF-8 even if a non-UTF-8 charset is in use
------------------------------------+-----------------------------
 Reporter:  iansealy                |       Owner:  azaozz
     Type:  defect (bug)            |      Status:  closed
 Priority:  low                     |   Milestone:  Future Release
Component:  Autosave                |     Version:  2.8.5
 Severity:  normal                  |  Resolution:  wontfix
 Keywords:  has-patch dev-feedback  |
------------------------------------+-----------------------------
Changes (by azaozz):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Using iconv to try to rectify the character encoding doesn't seem right:

 - The external app is usually not available.
 - When available, running the requests through it and presuming they are
 UTF-8 is wrong (and would break a lot of sites).
 - This is a JS problem and would be better to use JS to fix it.

 By default JS is UTF-8. The most straightforward solution seems to be to
 json encode any text passed through XHR when the HTML document's encoding
 is not UTF-8. Of course the "best" solution is still to use UTF-8
 everywhere :)

 This problem has been around for so long that starting to doubt it really
 needs fixing. Since WordPress has been using UTF-8 by default for several
 years, it seems there are very few people left that use different
 encodings, i.e. nearly all users have converted to UTF-8.

 Closing as wontfix for now, if there's till need to try and handle this in
 core, feel free to reopen with a patch.

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


More information about the wp-trac mailing list