[wp-trac] [WordPress Trac] #16079: Automatic excerpts don't work well with Chinese txt (word counting)
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 10 23:28:32 UTC 2012
#16079: Automatic excerpts don't work well with Chinese txt (word counting)
-------------------------------------+-----------------------
Reporter: houshuang | Owner: nacin
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 3.4
Component: I18N | Version: 3.0.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+-----------------------
Comment (by tenpura):
[attachment:16079.2.diff 16079.2.diff] fixes mainly two things about
[attachment:16079.diff 16079.diff].
1. preg_match_all() without u (PCRE_UTF8) modifier destroys UTF-8
multibyte characters.
2. implode() with ' ' separator chops strings like 'm e a t'.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16079#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list