Last modified: 2006-06-24 06:22:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8219, the corresponding Phabricator task for complete and up-to-date bug report information.
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