18 Jul
2003
18 Jul
'03
5:56 p.m.
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. TIA, --peppo
20 Jul
20 Jul
8:58 a.m.
New subject: [Zope] escaping unicode in id
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
8296
Age (days ago)
8298
Last active (days ago)
1 comments
2 participants
participants (2)
-
Giuseppe Bonelli -
Toby Dickenson