GeneralFunctions: Difference between revisions

Jump to navigation Jump to search
Line 43: Line 43:
Converts non-printable characters
Converts non-printable characters
* ''inText'' - input text
* ''inText'' - input text
* Returns ''inText'' with any non-printable characters replaced with their character code.
* Returns ''inText'' with any non-printable characters replaced with their character code, in the format #d; where d is the character code.
* uses inText.encode('ascii', 'xmlcharrefreplace') to convert
 
=== equalURL(URL1, URL2) ===
Return True if two URLs are functionally equal
* converts special characters to character code found in URLs (ex: space => %20) before testing if they are equal.
1,072

edits

Navigation menu