0

我在 iCalendar 中遇到口音问题。有人碰巧知道如何在这个文件中设置字符集吗?

我要设置的字符集是这样的:测试/日历;方法=请求;字符集 = UTF-8

日历文件:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-Projuris Calendário
METHOD:PUBLISH
X-WR-CALNAME:Projuris WEB (Administrador)
X-WR-TIMEZONE:America/Sao_Paulo
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:America/Sao_Paulo
TZURL:http://tzurl.org/zoneinfo/America/Sao_Paulo
X-LIC-LOCATION:America/Sao_Paulo
END:VTIMEZONE
BEGIN:VEVENT
DTSTART:20130625T010000
DTEND:20130625T010000
ORGANIZER;CN=Projuris WEB (Administrador):MAILTO:networkservice@ache.com.br
UID:496254697
COMMENT;X-COMMENTER=MAILTO:networkservice@ache.com.br
CLASS:PUBLIC
DESCRIPTION:
SUMMARY:   Pasta  12 
  Aditamento da Inícial Ação 

STATUS:CONFIRMED
TRANSP:OPAQUE
END:VEVENT
BEGIN:VEVENT
DTSTART:20130514T080000
DTEND:20130514T080000
ORGANIZER;CN=Projuris WEB (Administrador):MAILTO:networkservice@ache.com.br
UID:300843810
COMMENT;X-COMMENTER=MAILTO:networkservice@ache.com.br
CLASS:PUBLIC
DESCRIPTION:
SUMMARY:   Assembléia  
STATUS:CONFIRMED
TRANSP:OPAQUE
END:VEVENT
BEGIN:VEVENT
DTSTART:20130528T080000
DTEND:20130528T080000
ORGANIZER;CN=Projuris WEB (Administrador):MAILTO:networkservice@ache.com.br
UID:1152228998
COMMENT;X-COMMENTER=MAILTO:networkservice@ache.com.br
CLASS:PUBLIC
DESCRIPTION:
SUMMARY:   Assembléia  
STATUS:CONFIRMED
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
4

2 回答 2

0

看看RFC5545:

3.1.4。字符集

没有属性参数来声明属性值中使用的字符集。iCalendar 流的默认字符集是 [RFC3629] 中定义的 UTF-8。

于 2013-07-04T12:17:25.673 回答
0

您需要以 UTF8 编码指定数据。你如何构建文件?

于 2013-06-27T18:33:22.367 回答