https://bugzilla.wikimedia.org/show_bug.cgi?id=31918

       Web browser: ---
             Bug #: 31918
           Summary: ISO 8859-1 URL encoding for JavaScript
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Javascript
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


MediaWiki supports ISO 8859-1 and UTF-8 URL encoding:

ISO 8859-1:
 http://de.wikipedia.org/w/index.php?title=%D6sterreich&action=history

UTF-8:
 http://de.wikipedia.org/w/index.php?title=%C3%96sterreich&action=history

On ISO 8859-1 URL encoding
 mw.util.getParamValue('title')
stops on decodeURIComponent('%D6sterreich') with
 URIError: malformed URI sequence

Possible solutions:
* mw.util.getParamValue() tries to decode as ISO 8859-1 when UTF-8 decoding
fails.
* MediaWiki answers with 301 Moved Permanently and Location in UTF-8 encoding.

-- 
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 on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to