Open grigutis opened 8 years ago
After a little more research, it looks like the culprit is Text::vCard::Node->_wrap(). It wraps the lines at a set number of octets regardless if the characters are multibyte. But the spec says: "Multi-octet characters MUST remain contiguous."
Thanks @grigutis I'd be happy to take a pull request with some tests
When using multibyte UTF-8 characters in a NOTE node, characters are garbled/lost around the newline. I think specifying a newline as raw bytes (\x0D\x0A) is causing the problem. Shouldn't it just be \n an let perl figure it out based on the OS?
Example code:
On my Mac, example.vcf comes out as: