<span class="searchmatch">encoding</span> = args[2] end local <span class="searchmatch">encoder</span> = <span class="searchmatch">encoders</span>[<span class="searchmatch">encoding</span>] if not <span class="searchmatch">encoder</span> then error("No <span class="searchmatch">encoder</span> exists for the <span class="searchmatch">encoding</span> \"" .. <span class="searchmatch">encoding</span> .....
primary use of this function is to <span class="searchmatch">encode</span> text for use in URLs (external links), for certain sites that use older <span class="searchmatch">encodings</span>. Paste input and output hex-numbers...
) end local function <span class="searchmatch">encode</span>_entities(...) <span class="searchmatch">encode</span>_entities = require(string_utilities_module).<span class="searchmatch">encode</span>_entities return <span class="searchmatch">encode</span>_entities(...) end local...
format local gsub = string.gsub local match = string.match local function <span class="searchmatch">encode</span>_entity(ch) return "&#x" .. format("%X", codepoint(ch)) .. ";" end return...
local export = {} local anchor_<span class="searchmatch">encode</span> = mw.uri.anchor<span class="searchmatch">Encode</span> local <span class="searchmatch">encode</span>_entities = require("Module:string utilities").<span class="searchmatch">encode</span>_entities local concat = table...
The leading bytes for 2-byte <span class="searchmatch">encodings</span> are formally -- [\xC0-\xDF], but [\xC0\xC1] always form overlong <span class="searchmatch">encodings</span>. if b1 < 0xC2 or not b2 or b2...
converted end local function percent_<span class="searchmatch">encode</span>(str) return mw.uri.<span class="searchmatch">encode</span>(str, "PATH") end local function detect_<span class="searchmatch">encoding</span>(word) -- only ASCII characters if...
export.fix_unicode_and_url_<span class="searchmatch">encode</span>(text) text = mw.ustring.gsub(text, "[ăĕĭŏŭĂĔĬŎŬ]+", mw.ustring.toNFD) return mw.uri.<span class="searchmatch">encode</span>(text) end function export...
'-') local <span class="searchmatch">encoded</span>Term = mw.uri.<span class="searchmatch">encode</span>(strippedTerm) local sense = args["sense"] or '' if sense ~= '' then <span class="searchmatch">encoded</span>Term = <span class="searchmatch">encoded</span>Term .. sense...
process_params = require("Module:parameters").process local uri_<span class="searchmatch">encode</span> = mw.uri.<span class="searchmatch">encode</span> local export = {} function export.main(frame) local args =...