Coder Social home page Coder Social logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Also with Java 1.7.0_45

Original comment by [email protected] on 7 Jan 2014 at 2:24

from ez-vcard.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Adding a CHARSET parameter to the FN property should solve the issue:

BEGIN:VCARD
FN;quoted-printable;CHARSET=ISO-8859-1:Max Ma=DF
TEL;voice:+49123123
END:VCARD

This parameter tells the vCard parser what character set the quoted-printable 
value is in.

Original comment by mike.angstadt on 7 Jan 2014 at 9:11

from ez-vcard.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Thanks a lot Mike for this fast responding, it works!

I work with an API which don't set the charset-encoding.

It is maybe a nice Feature to be able to set the encoding manually in the 
Ezvcard.parse()-method.

What is the default encoding if there no CHARSET-parameter has been set, like 
in this case? ASCII?

Original comment by [email protected] on 8 Jan 2014 at 8:18

from ez-vcard.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
It will first attempt to find the character encoding of the Reader object.  If 
the Reader object doesn't have one (for example, if you are reading from a 
String object), then it will use your system's default character encoding.

I'll work on a way to set the encoding manually.

Original comment by mike.angstadt on 8 Jan 2014 at 1:26

  • Changed state: Accepted

from ez-vcard.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
The default encoding could be set (REST, UTF-8), but the implementation seems 
to be not very consistent. So the fault is caused by the API-provider...

But I think that will be a nice feature for the future. Thanks a lot for your 
working on this very nice Java lib!

Original comment by [email protected] on 8 Jan 2014 at 3:27

from ez-vcard.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 25, 2024
Fix completed.  You can now call a method to set a default character set for 
decoding quoted-printable properties that do not have a CHARSET parameter.

Charset charset = Charset.forName("ISO-8859-1");
VCard vcard = 
Ezvcard.parse(...).defaultQuotedPrintableEncoding(charset).first();

Original comment by mike.angstadt on 16 Jan 2014 at 4:03

  • Changed state: Fixed

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.