[CalendarServer-changes] [1341]
CalendarServer/trunk/twistedcaldav/ical.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 7 10:05:42 PST 2007
Revision: 1341
http://trac.macosforge.org/projects/calendarserver/changeset/1341
Author: wsanchez at apple.com
Date: 2007-03-07 10:05:42 -0800 (Wed, 07 Mar 2007)
Log Message:
-----------
Encode unicode iCalendar data as UTF-8.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/ical.py
Modified: CalendarServer/trunk/twistedcaldav/ical.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/ical.py 2007-03-07 03:08:45 UTC (rev 1340)
+++ CalendarServer/trunk/twistedcaldav/ical.py 2007-03-07 18:05:42 UTC (rev 1341)
@@ -161,6 +161,8 @@
@return: a L{Component} representing the first component described by
C{string}.
"""
+ if type(string) is unicode:
+ string = string.encode("utf-8")
return clazz.fromStream(StringIO.StringIO(string))
@classmethod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070307/eaaa7c5b/attachment.html
More information about the calendarserver-changes
mailing list