Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Add unicode methods "unichr" and "unicode" as unrestricted methods. Note
Browse files Browse the repository at this point in the history
that the issues remain to allowing unicode objects through Zope that are
not addressed herin, but are related to type('') not equalling type(u''); much
special case code exists that handles strings differently that needs
review to handle unicode as well.
  • Loading branch information
matt@zope.com committed May 16, 2001
1 parent d4e3193 commit 419a9fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions help/dtml-funcs.stx
Expand Up @@ -191,6 +191,15 @@ functions: DTML Functions
default is given, the default is returned. If no condition is true
and there is no default, None is returned.

unichr(number) -- Return a unicode string representing the value of
number as a unicode character. This is the inverse of ord() for
unicode characters.

unicode(string[, encoding[, errors ] ]) -- Decodes string using the
codec for encoding. Error handling is done according to errors. The
default behavior is to decode UTF-8 in strict mode, meaning that
encoding errors raise ValueError.

Attributes

None -- The 'None' object is equivalent to the Python built-in object
Expand Down

0 comments on commit 419a9fa

Please sign in to comment.