4 ms·
Who Knew Email Subjects Are So Complicated
- suhas_rd 5y agowell written and insightful. Thank you for sharing your learning.
- natSand 5y agogreat article!
- labawi 5y agoDoesn't base64 have a simple closed-form formula for the expansion, which can be easily inverted for a single-step calculation of max source length? Something like encoded_length = 4 * ceil(length / 3) + len(prefix + suffix) cut_at = floor((desired_length - len(prefix+suffix) / 4) * 3 Then, you should also try to at least cut on a utf8 code-point boundary and maybe handle the whole unicode grapheme something something.
- micahzayner 5y agointeresting