Opened 9 years ago
Closed 3 years ago
#1639 closed defect (bug) (fixed)
Themes Trac browser does not display UTF-8 text correctly
Reported by: | SergeyBiryukov | Owned by: | dd32 |
---|---|---|---|
Milestone: | Q1 | Priority: | normal |
Component: | Trac | Keywords: | |
Cc: |
Description
On Core and Plugins Trac, UTF-8 text is displayed correctly:
https://core.trac.wordpress.org/browser/tags/4.4.2/tests/phpunit/tests/pomo/po.php#L115
https://plugins.trac.wordpress.org/browser/edit-parent-comment-id/tags/0.3/edit-parent-comment-id-ru_RU.po#L24
On Themes Trac that's not the case, looks like ISO-8859-1 is the default encoding there:
https://themes.trac.wordpress.org/browser/zalive/1.3.4/languages/ru_RU.po#L20
Change History (14)
This ticket was mentioned in Slack in #meta by jeffslofish. View the logs.
8 years ago
#4
@
8 years ago
I was able to reproduce this bug locally by changing the default_charset under the [trac] section in trac.ini to iso-8859-1. When I changed it back to utf-8, the characters displayed properly. So I think someone with access may just need to set
default_charset = utf-8
under the [trac] section of trac.ini for the Themes Trac.
#7
@
8 years ago
BuddyPress Trac appears to have the same issue. UTF-8 text in this patch is not displayed correctly:
https://buddypress.trac.wordpress.org/attachment/ticket/7275/7275.01.patch
#8
@
6 years ago
- Milestone set to Q1
- Owner set to dd32
- Status changed from new to accepted
A bunch of Trac's have default_charset = utf-8
and a bunch have default_charset = iso-8859-15
.
Standardising on the former seems like a safe change, I'll request systems make the update.
Possibly the default_charset is set to the iso setting, or the mimeview component has a setting to correct for this for text/gettext files. Something in the trac.ini file, anyway.