Opened 14 years ago
Closed 14 years ago
#20503 closed defect (bug) (fixed)
Special Z characters are either erased or mis-substituted
| Reported by: | Namely | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Formatting | Version: | 3.3.1 |
| Severity: | major | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
Function convert_chars defined in wp-includes/formatting.php and used in many filters in wp-includes/default-filters.php does not handle two characters properly.
The subjects are two special Z characters: "Ž" and "ž".
convert_chars performs the following replacements:
$wp_htmltranswinuni = array( ... 'Ž' => 'ž', ... 'ž' => '', ...
This lower-cases "Ž" to "ž" and also erases "ž".
Instead, the code should be as follows:
$wp_htmltranswinuni = array( ... 'Ž' => 'Ž', ... 'ž' => 'ž', ...
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
That's a valid change indeed.
http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT
Unit test: [UT694]