-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in line folding algorithm #693
Comments
Thanks for pointing this out. It's rather about the UTF-8 representation when serializing than the it's about the method |
- Update line folding to use StringBuilder and ArrayPool<char> for better performance and memory efficiency. - Ensure compliance with RFC 5545 by handling multi-byte characters correctly. - Add System.Buffers package for netstandard2.0 target framework. Resolves ical-org#693
- Update line folding to use StringBuilder and ArrayPool<char> for better performance and memory efficiency. - Ensure compliance with RFC 5545 by handling multi-byte characters correctly. - Add System.Buffers package for netstandard2.0 target framework. Resolves ical-org#693
According to Section 3.1 of RFC-5545 line:
Octet is not a character in
C#
cause ofC# char
is 2 byte (16 bit = 2 octets) length, but 1 octet is 1 byte.So, you must firstly get the byte representation of a string, say with utf8 encoder, after that it's allowed to do the folding.
You can also pick up another strategy except one you choose now.
The text was updated successfully, but these errors were encountered: