Changeset 5317
- Timestamp:
- 05/22/07 03:50:47 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/unicode/docs/templates.txt
r5054 r5317 1013 1013 is less than 1). Otherwise, output is always an integer. 1014 1014 1015 iriencode 1016 ~~~~~~~~~ 1017 1018 Converts an IRI (Internationalized Resource Identifier) to a string that is 1019 suitable for including in a URL. This is necessary if you are trying to use 1020 strings containing non-ASCII characters in a URL. 1021 1022 You can use this filter after you have used the ``urlencode`` filter on a 1023 string, without harm. 1024 1015 1025 join 1016 1026 ~~~~ django/branches/unicode/tests/regressiontests/defaultfilters/tests.py
r5283 r5317 118 118 >>> iriencode(u'S\xf8r-Tr\xf8ndelag') 119 119 u'S%C3%B8r-Tr%C3%B8ndelag' 120 >>> iriencode(urlencode(u'jack & jill')) 121 u'jack%20%26%20jill' 120 122 121 123 >>> urlizetrunc(u'http://short.com/', 20)
