Menu

#80 Escape CR in Strings util class

Beta (1.0)
open
nobody
None
5
2013-10-04
2013-10-04
No

ical4j escapes CRLF and LF line endings to \n. However, single CRs are not escaped. The single CR is preserved in the iCalendar output, resulting in a files that is unparsable by clients.

A common scenario for this is when users copy data from Excel to SQL Server Management Studio, when for some reason newlines are copied as CRs (blegh).

Please find attached a patch that escapes CRLF, LF and CR line endings.

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.