Opened 13 years ago
Closed 13 years ago
#20503 closed defect (bug) (fixed)
Special Z characters are either erased or mis-substituted
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | major | Version: | 3.3.1 |
Component: | Formatting | Keywords: | has-patch commit |
Focuses: | Cc: |
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.
That's a valid change indeed.
http://unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1252.TXT
Unit test: [UT694]