'vcf file import error
I have a small problem with my Samsung Galaxy Y. I took the .vcf file to my pc, deleted some contacts with the txt editor and saved the file (I had written a script in R to do the same work and I had the same problems, so I did it manually too, to see if the problem still exists). I did the work fine, started the deletion from the begin vcard and deleted all the contact to vcard end line. But when I try to import my contacts (from this file) to my catalog it gives an error message: Expected String "BEGIN:VCARD" did not come (Instead "!>>?BEGIN:VCARD" came) I opened it to the phone txt editor and there were these symbols on the beggining of this text file. In winXP they do not appear, as well as in OpenSuSE... so what is happening and how I can get rid of them (so my R script works fine)?
*I asked the question in the android forum but got no answer. So I am asking this here. Maybe I have more luck now because there are so so many people here with programming skills so maybe they know the answer.
Solution 1:[1]
You have a byte order mark (BOM) at the beginning of the file. You need to convert the file to UTF-8 without BOM. On Windows, Notepad++ can do this for you.
Alternatively, you can use a hex editor to remove the bytes from the beginning of the file.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | 1615903 |