ranguard / text-vcard

Perl package to edit and create vCard(s) (RFC 2426)
22 stars 15 forks source link

Enconde/decode the key value pair to UTF-8 solves #37 #44

Closed jluis closed 7 years ago

jluis commented 7 years ago

When _wrap_utf8 is called $key and $value contain a strean of octets encoded on UTF-8 but we need the secuence of characters to calculate the where to wrap (or 'fold') the line

The t/unwrap.vcf is from pull request #38 test for isue #37

Signed-off-by: Jose Luis Perez Diez jluis@escomposlinux.org

ranguard commented 7 years ago

@kablamo are you happy with this :) ?

kablamo commented 7 years ago

Gah @ranguard I really have no idea. This unicode stuff is beyond me and trying to figure it out has stopped being fun. I'd say the tests pass and it solves his problem and doesn't break existing tests so I'm all for merging it. Sorry I'm not more useful here!

ranguard commented 7 years ago

Thanks @jluis appreciate the work you've done