Last modified: 2006-06-24 06:22:51 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 6219 - urlencode returns &26lrm%3B instead of percent encoded UTF-8
urlencode returns &26lrm%3B instead of percent encoded UTF-8
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.7.x
Other All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/wiki/Help:U...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-06 10:27 UTC by omniplex
Modified: 2006-06-24 06:22 UTC (History)
1 user (show)

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


Attachments

Description omniplex 2006-06-06 10:27:25 UTC
{{urlencode:{{DIRMARK}}}} returns %26lrm%3B

The LTR mark is u+200E, and according to a highly suspicious
algorithm published on [[m:Help:URL#Percent-Encoding]] that
should be
2: -0010---0000---0000---1110
3: ----0010---000000---001110
4: ----0010-10000000-10001110
7: 11100010-10000000-10001110
=> 11100010-10000000-10001110 => %E2%80%8E

See RFC 3987, it's straight forward (excluding punycode for
domains).
Comment 1 Brion Vibber 2006-06-06 19:38:29 UTC
{{DIRMARK}} returns ‎, so this would encode to %26lrm%3b.
Comment 2 omniplex 2006-06-24 06:22:51 UTC
Something with my caffeine level. I only looked at what I get for {{DIRMARK}},
it was translated to UTF-8 later (too late for urlencode). But somebody fixed
{{DIRMARK}} to return UTF-8 now, now urlencode works as expected.

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


Navigation
Links