https://bugzilla.wikimedia.org/show_bug.cgi?id=8095
Mormegil <[EMAIL PROTECTED]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Wikidata |OmegaWiki
Summary|� in Serbian definitions |� in truncated captions
--- Comment #3 from Mormegil <[EMAIL PROTECTED]> 2008-11-12 21:56:48 UTC ---
This bug is still there; the problem is that the truncation of the displayed
text uses plain old substr (see OmegaWiki/Editor.php), which cuts at bytes, not
at UTF-8 characters. So if the boundary happens to be inside a UTF-8 character,
the result is an invalid UTF-8 sequence, displayed as � in most browsers.
You need either to use mb_substr (or implement a similar function), or clean
the resulting string (UTF-8 is self-synchronizing, so it’s not a problem).
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l