Coder Social home page Coder Social logo

Comments (3)

mangstadt avatar mangstadt commented on July 23, 2024

Hi filipe,

is it normal that the comma is preceded by a backslash?

Comma characters are special characters and must be escaped according to the vCard specification.

And why is the FN split into several lines (breaking words in two) starting each line with a space?

That's called folding. Lines that are longer than 75 characters are split into multiple lines.

from ez-vcard.

filipe-maia avatar filipe-maia commented on July 23, 2024

Thanks for the quick responce.

I've been doing a very simple converter beteween vsf to csv and vice-versa so I could easily edit my phone contacts in the PC in a cell sheet (your lib saved me a lot of time).

My phone has Android 5 and I'm using the stock Google contact manager. After importing the generated contacts to my phone, I've noticed that folding is not a problem, but the backslash characters show up in some of my contacts name (only strange names like the one in the above example have this problem). I found that strange and that was why I oppened this issue, but now I guess that's a Google contact manager problem or maybe I'm doing something wrong.

You can close this issue.

from ez-vcard.

mangstadt avatar mangstadt commented on July 23, 2024

It's also possible that you are "double-escaping" a property value somehow. This would cause the backslash to appear in Google Contacts.

FN:thisIsAName\\\, aVeryLongName

I don't know why Google Contacts wouldn't unescape commas in FN properties. Even the example for the FN property in the specifications has an escaped comma in it!

from ez-vcard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.