Comments (5)
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.
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.
Thank you. Is "Windows 10 Contact Application" the actual name of the application?
from ez-vcard.
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.
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)
- vCards broken on systems with locale with non-Western digits HOT 5
- Address field parsing issue HOT 2
- Caret encoding: \n not encoded to ^n HOT 3
- Getting crash reports in the release version of the android app HOT 4
- Vulnerability (CVE-2021-37714) in jsoup 1.13.1 HOT 4
- Can't call VCardPropertyScribe.write* explicitly for all properties HOT 2
- Sharing VCF with image to WhatsApp doesn't work HOT 3
- unable to get Photo when using bytes data
- Unable to share Vcf contact card for Android 11 and above. HOT 1
- IMPP: case-insensitive comparison of schemes HOT 1
- VCardWriter - Writes data without proper formatting for Google Contacts - Expected : YYYY-MM-DD ; current : YYYYMMDD HOT 2
- [Q] How do I get the `RawProperty`s? HOT 1
- Version 0.11.3 vulnerabilities HOT 3
- Migration to 0.12.0 while still supporting Android API 21..25 HOT 6
- Add support for Jigsaw modules HOT 1
- Parsing from chunk of text HOT 2
- Custom getter in VCardProperty HOT 9
- Invalid value for "MonthOfYear" caused by wrong BDAY date HOT 1
- Raw property values HOT 4
- Relations and Anniversaries are lost in serialization HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ez-vcard.