Giter Site home page Giter Site logo

Comments (5)

mangstadt avatar mangstadt commented on June 2, 2024

Nico,

Thank you for the report. Can you post an example of a vCard that Windows 10 doesn't like? I want to make sure there's nothing else wrong with the vCard. Thank you.

from ez-vcard.

ekorn avatar ekorn commented on June 2, 2024

Sure I uploaded two one working one not

2859_Dipl_Paed_Pedrayk_Konsovkow_Verwaltung.txt
2859_Dipl_Paed_Pedrayk_Konsovkow_Verwaltung_win10_error.txt

from ez-vcard.

mangstadt avatar mangstadt commented on June 2, 2024

Thank you. Is "Windows 10 Contact Application" the actual name of the application?

from ez-vcard.

mangstadt avatar mangstadt commented on June 2, 2024

Fixed in e2a4dd3. Thanks for reporting this.

Call VCardWriter.setTargetApplication() like so:

VCard vcard = new VCard();
FormattedName fn = vcard.setFormattedName("Dipl. Päd. Konsovkow");
fn.getParameters().setEncoding(Encoding.QUOTED_PRINTABLE);

VCardWriter writer = new VCardWriter(System.out, VCardVersion.V3_0);
writer.setTargetApplication(TargetApplication.WINDOWS_10_CONTACTS);
writer.write(vcard);
writer.close();

Output:

BEGIN:VCARD
VERSION:3.0
PRODID:ez-vcard 0.9.11-SNAPSHOT
FN;ENCODING=QUOTED-PRINTABLE;CHARSET=UTF-8:Dipl. P=C3=A4d. Konsovkow
END:VCARD

from ez-vcard.

mangstadt avatar mangstadt commented on June 2, 2024

Addendum: I decided to instead change the parameter value on the Encoding.QUOTED_PRINTABLE object. This is solution is not only simpler, but also a little bit more spec-compliant because the 2.1 specification does not say anything about this parameter value being case-insensitive. I also converted the "BASE64", "7BIT", and "8BIT" parameter values to uppercase for the same reason.

See: a960585

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.