[wp-trac] [WordPress Trac] #63974: .mo file loaded as UTF-8 by default - non-standard and ignoring Content-Type headers

WordPress Trac noreply at wordpress.org
Mon Sep 15 15:22:20 UTC 2025


#63974: .mo file loaded as UTF-8 by default - non-standard and ignoring Content-
Type headers
--------------------------+------------------------------
 Reporter:  kkmuffme      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  I18N          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by siliconforks):

 Replying to [comment:6 kkmuffme]:
 > One (and the biggest pain point for me) is that .mo files aren't valid
 and can't be converted back to .po files with basic msgunfmt tool (since
 all UTF-8 will get stripped).

 Note that you can use `msgunfmt --escape` to output the bytes as C escape
 characters.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63974#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list