Changeset 915 in tests for trunk/data/formatting/utf-8/urlencode.py
- Timestamp:
- 07/19/2012 02:41:52 PM (13 years ago)
- Location:
- trunk/data/formatting/utf-8
- Files:
-
- 1 added
- 1 copied
-
. (added)
-
urlencode.py (copied) (copied from trunk/data/jacob/urlencode.py) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/formatting/utf-8/urlencode.py
r909 r915 1 # Generates test data for the utf8_uri_encode function in formatting.php2 # Pipe UTF-8 data to stdin and accept it from stdout1 # Generates urlencoded.txt from utf-8.txt. 2 # Used for Test_UTF8_URI_Encode. 3 3 4 4 import urllib, codecs, re … … 23 23 args = sys.argv[1:] 24 24 if args and args[0] in ("-h", "--help"): 25 print "Usage: python urlencode.py < utf 8-lines.txt > utf8-urlencoded-lines.txt"25 print "Usage: python urlencode.py < utf-8.txt > urlencoded.txt" 26 26 sys.exit(2) 27 27
Note: See TracChangeset
for help on using the changeset viewer.