[Zope] escaping unicode in id
Toby Dickenson
tdickenson@geminidataloggers.com
Sun, 20 Jul 2003 09:58:45 +0100
On Friday 18 July 2003 18:56, Giuseppe Bonelli wrote:
> Hi all,
>
> has someone a quick&dirty recipe to clean-up/escape unicode chars (utf8)
> from strings to be used as object's id ?
>
> A simple encode('ascii') doesn't work if the string contains high chars.
.encode('unicode-escape')
--
Toby Dickenson - http://www.geminidataloggers.com/people/tdickenson
Want a job like mine? http://www.geminidataloggers.com/jobs for Software
Engineering jobs at Gemini Data Loggers in Chichester, West Sussex, England