diff options
author | hierro <hierro> | 2006-06-16 20:15:24 +0000 |
---|---|---|
committer | hierro <hierro> | 2006-06-16 20:15:24 +0000 |
commit | c0f6ba9fc81a4604c82b3d62e2471f0b6cedf462 (patch) | |
tree | 06fa72edda81ff7cbd4ea0fb91002276c54ac3c9 /CHANGES | |
parent | 6382a7266d02db704560ec58e39d6680e46c0931 (diff) | |
download | python-cheetah-c0f6ba9fc81a4604c82b3d62e2471f0b6cedf462.tar.gz |
Core changes by MO:
- WebSafe and the other optional filters in Filters.py now use
RawOrEncodedUnicode instead of Filter as a base class. This allows them
to work with Unicode values containing non-ASCII characters.
User-written custom filters should inherit from
RawOrEncodedUnicode and call the superclass .filter() instead of str().
str() as of Python 2.4.2 still converts Unicode to string using
ASCII codec, which raises UnicodeEncodeError if it contains non-ASCII
characters.
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -32,6 +32,16 @@ release Code that makes use of explicit directive close tokens immediately followed by another directive will still work as expected: #if test##for i in range(10)# foo $i#end for##end if + + Core changes by MO: + - WebSafe and the other optional filters in Filters.py now use + RawOrEncodedUnicode instead of Filter as a base class. This allows them + to work with Unicode values containing non-ASCII characters. + User-written custom filters should inherit from + RawOrEncodedUnicode and call the superclass .filter() instead of str(). + str() as of Python 2.4.2 still converts Unicode to string using + ASCII codec, which raises UnicodeEncodeError if it contains non-ASCII + characters. 2.0rc6 (Feb 4, 2006) |