开发者

how to solve Exception in Ical4j?

开发者 https://www.devze.com 2023-01-09 21:37 出处:网络
I am using ical4j for parsing outlook calendar file.When i parse the file it gives the exception as follows

I am using ical4j for parsing outlook calendar file.When i parse the file it gives the exception as follows

Error at line 60:Illegal character in opaque part at index 4: CID:<FFFF__=0ABBFDFEDFCB93A98f9e8a9@medicraft.com.au>

How to solve this pro开发者_运维技巧blem without changing the calendar file.


If you enable the NOTES_COMPATIBILITY CompatibilityHint this exception should go away. You can do this either programmatically:

CompatibilityHints.setHintEnabled(CompatibilityHints.KEY_NOTES_COMPATIBILITY, true);

or via the following line in the ical.properties added to the classpath:

ical4j.compatibility.notes=true

See the ical4j wiki for further details:

http://wiki.modularity.net.au/ical4j/index.php?title=Compatibility

0

精彩评论

暂无评论...
验证码 换一张
取 消