Last modified: 2009-10-10 09:17:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8095 - � in truncated captions
� in truncated captions
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikiLexicalData/OmegaWiki (Other open bugs)
unspecified
PC All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.omegawiki.org/Expression:b...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-30 13:15 UTC by Siebrand Mazeland
Modified: 2009-10-10 09:17 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot of anomaly (6.03 KB, image/png)
2008-02-02 17:23 UTC, Siebrand Mazeland
Details

Description Siebrand Mazeland 2006-11-30 13:15:57 UTC
Using the Serbian user interface, � is displayed at the end of some Serbian
definitions (e.g. [[WiktionaryZ:biologija]]). --[[User:Red Baron|Red Baron]]
11:34, 29 August 2006 (CEST)

:It looks fine to me (Firefox) [[User:GerardM|GerardM]] 13:54, 1 September 2006
(CEST)
: it happens to me in French, it's at the end of the part of the def that is
displayed (before we click on the "+" sign) when the letter where it's cut is a
special character (é, è, ...). (Is it any clear?) [[User:Kipcool|Kipcool]]
19:25, 8 September 2006 (CEST)
:: Seen again today on the above-mentioned article (with Serbian interface).
[[User:Kipcool|Kipcool]] 14:47, 17 November 2006 (CET)

Taken from: http://wiktionaryz.org/index.php?title=Insect_room&oldid=596181
Comment 1 Siebrand Mazeland 2008-02-02 17:23:55 UTC
Created attachment 4608 [details]
Screenshot of anomaly
Comment 2 Siebrand Mazeland 2008-02-02 17:24:58 UTC
Still happens with UI language set to 'sr' on
http://www.omegawiki.org/Expression:biologija. Added a screenshot and updated URL.
Comment 3 Mormegil 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).
Comment 4 Kipmaster 2009-10-10 09:17:30 UTC
Fixed in r57611

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links