Last modified: 2006-05-03 17:23:57 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 5256 - Magic words (predefined templates) {{UTF-8DECODE:}} {{UTF-8ENCODE:}} (optional {{UTF-8ENCODE8:}} {{UTF-8ENCODE16:}})
Magic words (predefined templates) {{UTF-8DECODE:}} {{UTF-8ENCODE:}} (optiona...
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-03-15 11:33 UTC by lɛʁi לערי ריינהארט
Modified: 2006-05-03 17:23 UTC (History)
1 user (show)

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


Description lɛʁi לערי ריינהארט 2006-03-15 11:33:41 UTC

There is a lot of code in &html_entity; &#nnnn; &#xnnn; %xx%yy%zz notation
around there.
There are arguments for using either UTF-8 characters or &html_entity; &#nnnn;
&#xnnn; %xx%yy%zz notation depending on available fonts, objectives (traying to
read / debug / trace the code) etc.

New prediefined templates {{UTF-8DECODE:}} {{UTF-8ENCODE:}} should act like
{{SUBST:}} and change the page source. {{SUBSTUTF-8DECODE:}}
{{SUBSTUTF-8ENCODE:}} would be "horrible" magic words.

Such endoding decoding is very painfull. With preview, copy and paste characters
can be lost. UTF-8DECODE requires external tools and copying %xx%yy%zz notation
from the browsers url should belong to the past.

In the example from the url
{{UTF-8DECODE:משתמש זה
דובר '''[[:Category:User
he|עברית]]''' כמעט
כ'''[[:Category:User he-4|שפת אם]]'''.}}
would give
משתמש זה דובר '''[[:Category:User he|עברית]]''' כמעט כ'''[[:Category:User
he-4|שפת אם]]'''.
which displays here in MediaZilla according to the bidirectional algorithm.

{{UTF-8ENCODE:}} should do the oposite. It might be that a encoding using HTLM
entities should be supported for better readability (by default or as an
option). Then UTF-8ENCODE should encode non-entities either in decimal notation
or in hexadecimal notation.

Please comment if variants {{UTF-8ENCODE8:}} {{UTF-8ENCODE16:}}
{{UTF-8ENCODEENTITY:}} are required or not.

best regards reinhardt [[user:gangleri]]
Comment 1 Brion Vibber 2006-03-15 20:26:10 UTC
What in the hell?
Comment 2 lɛʁi לערי ריינהארט 2006-03-24 16:32:41 UTC
I assume that for {{UTF-8DECODE:}}

& should never be decoded as &
& should be escaped as &

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