And both CHARSET=Windows-1250 and CHARSET=Windows-1252 are added before the description and summary but it does not display that characters while the calendar open in outlook. Here is the output for icalendar on notepad
which is correct but it doesn’t diplay these characters on outlook calendar.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
DTSTART:20120327T150600
DTEND:20120531T150600
SUMMARY;CHARSET=Windows-1252: úaaaa ö é á á újí á í á á ó é ó
DESCRIPTION;CHARSET=Windows-1252: ú ö é á á újí á í á á ó é ó
END:VEVENT
END:VCALENDAR
tahmineh
Member
18 Points
34 Posts
Problem with icalendar for characters with accents
Apr 13, 2012 03:12 PM|LINK
Hello
I have a problem with icalendar for characters with accents. The string is converted Encoding.GetEncoding("windows-1250");
sb.AppendLine("BEGIN:VCALENDAR");
sb.AppendLine("VERSION:2.0");
sb.AppendLine("PRODID:-//hacksw/handcal//NONSGML v1.0//EN");
sb.AppendLine("BEGIN:VEVENT");
sb.AppendLine("DTSTART:" + startDateAndTime);
sb.AppendLine("DTEND:" + endDateAndTime);
if (IsWindows_1250_Encoding(summary))
sb.AppendLine("SUMMARY;CHARSET=Windows-1250:" + ConvertUTF8ToWin1250(summary));
else
sb.AppendLine("SUMMARY;CHARSET=Windows-1252:" + ConvertUTF8ToWin1252(summary));
if (IsWindows_1250_Encoding(description))
sb.AppendLine("DESCRIPTION;CHARSET=Windows-1250:" + ConvertUTF8ToWin1250(description));
else
sb.AppendLine("DESCRIPTION;CHARSET=Windows-1252:" + ConvertUTF8ToWin1252(description));
sb.AppendLine("END:VEVENT");
sb.AppendLine("END:VCALENDAR");
And both CHARSET=Windows-1250 and CHARSET=Windows-1252 are added before the description and summary but it does not display that characters while the calendar open in outlook. Here is the output for icalendar on notepad which is correct but it doesn’t diplay these characters on outlook calendar.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
DTSTART:20120327T150600
DTEND:20120531T150600
SUMMARY;CHARSET=Windows-1252: úaaaa ö é á á újí á í á á ó é ó
DESCRIPTION;CHARSET=Windows-1252: ú ö é á á újí á í á á ó é ó
END:VEVENT
END:VCALENDAR
Is there any suggestion?
Thanks