Helper functions for mbstring.func_overload
|Reported by:||dd32||Owned by:||dd32|
Attached is a patch which introduces a helper function to set/reset the mbstring internal encoding, limited testing performed, but it appears to work as expected.
It's possible to call it multiple times (nested) as long as there are the same number of reset calls made.
An alternative solution, would be to set the mbstring internal encoding globally for WordPress, forcing it to our preferred character encoding, something that although I love the idea of at first, it may have significant impacts for users who actually rely upon it.
Change History (16)
- Owner set to dd32
- Resolution set to fixed
- Status changed from new to closed