/dports/net/py-ldap3/ldap3-2.8.1/ldap3/utils/ |
H A D | conv.py | 87 return obj.encode(encoding) 98 escaped = text.replace('\\', '\\5c') 99 escaped = escaped.replace('*', '\\2a') 100 escaped = escaped.replace('(', '\\28') 101 escaped = escaped.replace(')', '\\29') 102 escaped = escaped.replace('\x00', '\\00') 104 escaped = to_unicode(escape_bytes(text)) 107 return escaped 135 bytes_value = bytes_value.encode('utf-8') 138 escaped = '' [all …]
|
/dports/www/py-tornado4/tornado-4.5.3/tornado/test/ |
H A D | escape_test.py | 153 for unescaped, escaped in tests: 167 for escaped, unescaped in tests: 173 (u'\u00e9'.encode('utf8'), '%C3%A9'), 174 (u'\u00e9'.encode('latin1'), '%E9'), 179 for unescaped, escaped in tests: 188 for escaped, unescaped, encoding in tests: 192 self.assertEqual(url_unescape(to_unicode(escaped), encoding), unescaped) 193 self.assertEqual(url_unescape(utf8(escaped), encoding), unescaped) 198 escaped = '%2B%20%23%25' 203 self.assertEqual(url_unescape(plus_escaped, encoding=None), [all …]
|
/dports/www/py-tornado/tornado-6.1/tornado/test/ |
H A D | escape_test.py | 228 for unescaped, escaped in tests: 242 for escaped, unescaped in tests: 248 (u"\u00e9".encode("utf8"), "%C3%A9"), 249 (u"\u00e9".encode("latin1"), "%E9"), 253 for unescaped, escaped in tests: 262 for escaped, unescaped, encoding in tests: 266 self.assertEqual(url_unescape(to_unicode(escaped), encoding), unescaped) 267 self.assertEqual(url_unescape(utf8(escaped), encoding), unescaped) 272 escaped = "%2B%20%23%25" 277 self.assertEqual(url_unescape(plus_escaped, encoding=None), utf8(unescaped)) [all …]
|
/dports/www/py-tornado5/tornado-5.1.1/tornado/test/ |
H A D | escape_test.py | 157 for unescaped, escaped in tests: 171 for escaped, unescaped in tests: 177 (u'\u00e9'.encode('utf8'), '%C3%A9'), 178 (u'\u00e9'.encode('latin1'), '%E9'), 183 for unescaped, escaped in tests: 192 for escaped, unescaped, encoding in tests: 196 self.assertEqual(url_unescape(to_unicode(escaped), encoding), unescaped) 197 self.assertEqual(url_unescape(utf8(escaped), encoding), unescaped) 202 escaped = '%2B%20%23%25' 207 self.assertEqual(url_unescape(plus_escaped, encoding=None), [all …]
|
/dports/sysutils/py-salt/salt-3004.1/salt/ext/tornado/test/ |
H A D | escape_test.py | 154 for unescaped, escaped in tests: 168 for escaped, unescaped in tests: 174 (u'\u00e9'.encode('utf8'), '%C3%A9'), 175 (u'\u00e9'.encode('latin1'), '%E9'), 180 for unescaped, escaped in tests: 189 for escaped, unescaped, encoding in tests: 193 self.assertEqual(url_unescape(to_unicode(escaped), encoding), unescaped) 194 self.assertEqual(url_unescape(utf8(escaped), encoding), unescaped) 199 escaped = '%2B%20%23%25' 204 self.assertEqual(url_unescape(plus_escaped, encoding=None), [all …]
|
/dports/ftp/R-cran-RCurl/RCurl/man/ |
H A D | curlEscape.Rd | 5 \title{Handle characters in URL that need to be escaped} 9 escaped. For example, to send a URL with a space, 23 \item{urls}{ a character vector giving the strings to be escaped or 25 \item{x}{the strings to be encoded via the percent-encoding method} 26 \item{amp}{a logical value indicating whether to encode \& 28 \item{codes}{the named character vector giving the encoding map. The 29 names are the characters we encode, the values are what we encode them 40 to the input with the characters escaped or not. 45 Percent encoding explained in \url{https://en.wikipedia.org/wiki/Percent-encoding}
|
/dports/www/twiki/twiki/data/TWiki/ |
H A D | VarURLPARAM.txt,v | 79 | =encode="off"= | Turn off encoding. See important security note below | =encode="safe"= | 80 …encode="quote"= | Escape double quotes with backslashes (=\"=), does not change other characters; … 93 …cripting]] (XSS) if the encoding is turned off. The =encode="safe"= is the default, it provides a … 96 …escaped when passed into a [[%IF{"'%SEARCH%'='TWikiVariables'" then="#"}%VarSEARCH][SEARCH]] varia… 116 …RL parameters must be escaped when passed into other TWiki variables.%BR% Example: =%<nop>SEARCH{ … 166 | =encode="off"= | Turn off encoding. See important security note below | encode="safe" | 187 …encode="entity"= | Encode special characters into HTML entities. See [[%IF{"'%INCLUDINGTOPIC%'='TW… 188 …| =encode="url"= | Encode special characters for URL parameter use, like a double quote into =%22=… 189 …encode="quote"= | Escape double quotes with backslashes (=\"=), does not change other characters; … 224 …RL parameters must be escaped when passed into other TWiki variables.%BR% Example: =%<nop>SEARCH{ … [all …]
|
/dports/devel/sentry-cli/sentry-cli-1.71.0/cargo-crates/java-properties-1.4.0/src/ |
H A D | lib.rs | 153 encoding, in new() 616 match self.encoding.encode(comment, UNICODE_ESCAPE) { in write_comment() 626 let mut escaped = String::new(); in write_escaped() localVariable 630 ' ' => escaped.push_str("\\ "), in write_escaped() 635 ':' => escaped.push_str("\\:"), in write_escaped() 636 '=' => escaped.push_str("\\="), in write_escaped() 637 '!' => escaped.push_str("\\!"), in write_escaped() 638 '#' => escaped.push_str("\\#"), in write_escaped() 643 match self.encoding.encode(&escaped, UNICODE_ESCAPE) { in write_escaped() 676 match self.encoding.encode(prefix, UNICODE_ESCAPE) { [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/tools/security/ |
H A D | idn_test_case_generator.py | 68 escaped = repr(c)[2:-1] 71 if escaped[:2] in ('\\x', '\\u'): 72 escaped = '\\x%04x' % ord(c) 73 result.append(escaped) 106 idna_input = codecs.encode(unicode_domain, 'idna') 142 domain = args.domain.decode(sys.stdin.encoding)
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/tools/security/ |
H A D | idn_test_case_generator.py | 68 escaped = repr(c)[2:-1] 71 if escaped[:2] in ('\\x', '\\u'): 72 escaped = '\\x%04x' % ord(c) 73 result.append(escaped) 106 idna_input = codecs.encode(unicode_domain, 'idna') 142 domain = args.domain.decode(sys.stdin.encoding)
|
/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/storage/ |
H A D | csvl10n.py | 137 for unescaped, escaped in self.spreadsheetescapes: 139 source = source.replace(unescaped, escaped, 1) 141 target = target.replace(unescaped, escaped, 1) 146 for unescaped, escaped in self.spreadsheetescapes: 147 if source.startswith(escaped): 149 if target.startswith(escaped): 153 def fromdict(self, cedict, encoding="utf-8"): argument 275 super().__init__(encoding=encoding) 297 text, encoding = self.detect_encoding( 301 self.encoding = encoding or "utf-8" [all …]
|
/dports/www/py-Tenjin/Tenjin-1.1.1/test/ |
H A D | test_encoding.py | 67 encodings = dict(encode=None, decode=None), 75 encodings = dict(encode='utf-8', decode=None), 90 t = tenjin.Template(encoding='utf-8') 149 t = tenjin.Template(encoding='utf-8') 177 assert tenjin.Template.encoding == None 180 Template_encoding = tenjin.Template.encoding 184 ok (tenjin.Template.encoding) == 'utf-8' 189 tenjin.set_template_encoding(encode='utf-8') 190 ok (tenjin.Template.encoding) == None 195 tenjin.Template.encoding = Template_encoding [all …]
|
/dports/editors/libreoffice/libreoffice-7.2.6.2/offapi/com/sun/star/util/ |
H A D | XStringEscape.idl | 29 /** This interface is used to encode an arbitrary String into a 30 escaped form. 32 <p>The escaped form is chosen to be suitable for use with other interfaces 36 any naming rules or restrictions must be replaced by an escaped form, 41 may be lost after encoding and then decoding, if the service 44 <p>Other than that the encoding is one-to-one and can be reversed. The 45 encoding should try to preserve as much as possible of the original 52 /** encodes an arbitrary string into an escaped form compatible with some naming rules. 57 /** decodes an escaped string into the original form.
|
/dports/editors/libreoffice6/libreoffice-6.4.7.2/offapi/com/sun/star/util/ |
H A D | XStringEscape.idl | 29 /** This interface is used to encode an arbitrary String into a 30 escaped form. 32 <p>The escaped form is chosen to be suitable for use with other interfaces 36 any naming rules or restrictions must be replaced by an escaped form, 41 may be lost after encoding and then decoding, if the service 44 <p>Other than that the encoding is one-to-one and can be reversed. The 45 encoding should try to preserve as much as possible of the original 52 /** encodes an arbitrary string into an escaped form compatible with some naming rules. 57 /** decodes an escaped string into the original form.
|
/dports/shells/ohmyzsh/ohmyzsh-6babcbd8841335a3c25ec960ff57ab9a139c9073/lib/ |
H A D | functions.zsh | 130 # URL-encode a string 132 # Encodes a string using RFC 2396 URL-encoding (%-escaped). 136 # not escaped by this function. This allows the common usage of passing 140 # respectively, which allows arbitrary strings to be fully escaped for 144 # Returns nonzero if encoding failed. 149 # -r causes reserved characters (;/?:@&=+$,) to be escaped 151 # -m causes "mark" characters (_.!~*''()-) to be escaped 166 local encoding=$langinfo[CODESET] 213 # Decodes a RFC 2396 URL-encoded (%-escaped) string. 221 # Returns nonzero if encoding failed. [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/net-doc/net/scribblings/ |
H A D | uri-codec.scrbl | 13 encoding rules given in RFC 2396 @cite["RFC2396"], and to encode and 32 encoders that encode @litchar{!}, @litchar{*}, @litchar{'}, 42 @item{Control names and values are escaped. Space characters are 43 replaced by @litchar{+}, and then reserved characters are escaped as 74 @defproc[(uri-encode [str string?]) string?]{ 83 @defproc[(uri-path-segment-encode [str string?]) string?]{ 89 @defproc[(uri-userinfo-encode [str string?]) string?]{ 95 @defproc[(uri-unreserved-encode [str string?]) string?]{ 104 and that @racket[uri-encode] does not. 111 @defproc[(form-urlencoded-encode [str string?]) string?]{ [all …]
|
/dports/mail/pantomime/Pantomime-1.3.0/Framework/Pantomime/ |
H A D | NSString+Extensions.m | 597 BOOL escaped; 602 // We UTF-7 encode _only_ the non-ASCII parts. 621 // We got a non-ASCII character, let's get the substring and encode it using UTF-7. 635 escaped = NO; 667 escaped = YES; 679 escaped = NO; 689 if (escaped) 710 BOOL escaped; 718 escaped = NO; 740 escaped = YES; [all …]
|
/dports/www/p5-URI-Encode/URI-Encode-0.09/ |
H A D | README | 12 my $encoded = $uri->encode($data); 23 This modules provides simple URI (Percent) encoding/decoding 26 method to encode strings (mainly URLs) into a format which can be pasted 28 person reading that email. This can be accomplished by NOT encoding the 32 are properly escaped. 37 See this script for a comparison on encoding results and performance. 67 encode($url, \%options) 71 converted into UTF-8 before percent encoding. Options set in the 75 $uri->encode("http://perl.com/foo bar"); 83 converted to UTF-8 before 'percent' encoding. Be sure to check the [all …]
|
/dports/devel/elixir-exjsx/exjsx-4.0.0/ |
H A D | README.md | 21 - [encoding json](#convert-an-elixir-dict-into-a-json-string) 36 - [escaped forward slashes](#escaped_forward_slashes) 37 - [escaped strings](#escaped_strings) 44 - [encode and encode!](#encodeterm-opts) 167 strings. json must be unicode, but no encoding is specified. javascript 174 unless properly escaped with `\` (`u+005c`)) and that are encoded in `utf8` 191 when encoding, atoms are first converted to BitStrings 232 but you don't like that encoding. ok. do this: 266 json strings are escaped according to the json spec. this means forward 291 these codepoints are escaped (to `\u2028` and `\u2029`, respectively) to [all …]
|
/dports/lang/racket/racket-8.3/collects/net/ |
H A D | uri-codec.rkt | 43 ;; the URI encoding rules given in RFC 2396, and to encode and decode 48 ;; The URI encoding uses allows a few characters to be represented `as 55 ;; The encoding, inline with RFC 2396's recommendation, represents a 63 ;; 1. Control names and values are escaped. Space characters are 64 ;; replaced by `+', and then reserved characters are escaped as 76 ;; This differs slightly from the straight encoding in RFC 2396 in 78 ;; convention, encoding a space as `+' and decoding `+' as a space. 141 (define encoding-table (build-vector ascii-size number->hex-string)) 144 (vector-set! encoding-table 150 (values encoding-table decoding-table)) [all …]
|
/dports/lang/racket-minimal/racket-8.3/collects/net/ |
H A D | uri-codec.rkt | 43 ;; the URI encoding rules given in RFC 2396, and to encode and decode 48 ;; The URI encoding uses allows a few characters to be represented `as 55 ;; The encoding, inline with RFC 2396's recommendation, represents a 63 ;; 1. Control names and values are escaped. Space characters are 64 ;; replaced by `+', and then reserved characters are escaped as 76 ;; This differs slightly from the straight encoding in RFC 2396 in 78 ;; convention, encoding a space as `+' and decoding `+' as a space. 141 (define encoding-table (build-vector ascii-size number->hex-string)) 144 (vector-set! encoding-table 150 (values encoding-table decoding-table)) [all …]
|
/dports/devel/sope2/SOPE/sope-core/NGExtensions/FdExt.subproj/ |
H A D | NSString+URLEscaping.m | 41 // NSLog(@"Note: Using UTF-8 as URL encoding in NGExtensions."); 132 else { // any other char is escaped .. 191 else if (_isHexDigit(c)) { // hex-escaped char, like '%F3' 198 else // escaped char, like '%%' -> '%' 288 NSStringEncoding encoding; 292 if (![self containsURLInvalidCharacters]) // needs to be escaped ? 296 // a) encode into a data buffer! (eg UTF8 or ISO) 297 // b) encode that buffer into URL encoding 300 encoding = (doUseUTF8Encoding() 304 if ((data = [self dataUsingEncoding:encoding]) == nil) [all …]
|
/dports/devel/sope/SOPE/sope-core/NGExtensions/FdExt.subproj/ |
H A D | NSString+URLEscaping.m | 41 // NSLog(@"Note: Using UTF-8 as URL encoding in NGExtensions."); 132 else { // any other char is escaped .. 191 else if (_isHexDigit(c)) { // hex-escaped char, like '%F3' 198 else // escaped char, like '%%' -> '%' 288 NSStringEncoding encoding; 292 if (![self containsURLInvalidCharacters]) // needs to be escaped ? 296 // a) encode into a data buffer! (eg UTF8 or ISO) 297 // b) encode that buffer into URL encoding 300 encoding = (doUseUTF8Encoding() 304 if ((data = [self dataUsingEncoding:encoding]) == nil) [all …]
|
/dports/www/ikiwiki/ikiwiki-3.20200202.3/doc/bugs/ |
H A D | shortcut_encoding.mdwn | 13 > The encoding of the shortcut text is done so that a shortcut can have 20 > used to do a google search for "foo&bar". You want to encode the "&" 24 > doesn't decode the escaped characters in the path string. 26 > I could add a %S that is not escaped, and leave %s escaped.. --[[Joey]]
|
/dports/irc/py-limnoria/Limnoria-master-2019-09-08/src/utils/ |
H A D | str.py | 185 encoding = 'string_escape' if minisix.PY2 else 'unicode_escape' 187 s = s.encode('utf8', 'replace') 188 return '"%s"' % s.encode(encoding).decode().replace('"', '\\"') 265 escaped = re.escape(sep) 267 % (escaped, escaped, escaped)) 301 return str(x).encode('utf8') 316 word[size-i:].encode('utf8') 332 words = [w.encode() for w in words] 557 return s.encode('utf8') 570 return token.encode('utf8', 'replace')
|