Apple addressbook encoding not recognised
Status: Beta
Brought to you by:
duponchel
When I export my Apple address book, it uses some
encoding that is not recognised by vCard4j.
I did some debugging. The check on the
text 'BEGIN:VCARD' does not succeed because my
BEGIN:VCARD is 21 characters long and BEGIN_VCARD is
only 11 characters long.
Logged In: YES
user_id=787035
When I added in line 144 in DomParser.java the String
parameter "UTF-16" in the InputStreamReader, my problem
was solved. But I won't be able to read any other enconded
vcard files.
A solution would be a heuristic guess about the input file
encoding bye reading the first two bytes of the file.