Quang-Ho / vcardio

Automatically exported from code.google.com/p/vcardio
0 stars 0 forks source link

Import from SonyEricsson C902 doesn't work #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. From SonyEricsson C902, go to contacts, then Options, Others, Advanced,
Save on memory card (my menus are in french, so it can be different names)
2. Transfer the backup file (PB_Backup.vcf) to your android phone
3. Launch VCardIO, import this file

What is the expected output? What do you see instead?
Stop the import because of the error

What version of the product are you using? On what operating system?
VCardIO 0.8, Android CupCake 1.5 on HTC Magic

Please provide any additional information below.
I tried with only one vcard so I could determine the problem.
Here is the VCard :
BEGIN:VCARD

VERSION:2.1

N;ENCODING=QUOTED-PRINTABLE:Jorgel;Agn=E8s

FN;ENCODING=QUOTED-PRINTABLE:Agn=E8s Jorgel

TEL;CELL:0123456789
X-IRMC-LUID:0002000000FF

END:VCARD

The X-IRMC-LUID field isn't in the same format as the one from VCardIO and
it stop because of that.

The other problem come from the encoding where I lose the accents. It use
some sort of odd special characters (Normally it is : Agnès)

Original issue reported on code.google.com by dola...@gmail.com on 27 May 2009 at 9:04

GoogleCodeExporter commented 9 years ago
I've said something wrong. The import doesn't stop !

It stopped because I've removed special accent with real in utf8 encoding (so I
replaced =E8 by è in utf8. And that + the bad X-IRMC-LUID doesn't work

But bad X-IRMC-LUID + =E8 does work. Not well, but work. Instead of the good 
accent
in the Contacts application, I have losange with ?.
If I'm right, it means that the =E8 character is a "è" in iso-8859-15 
encoding., if
opened by utf-8 application like Contacts, it display a losange.

Original comment by dola...@gmail.com on 27 May 2009 at 11:00

GoogleCodeExporter commented 9 years ago
The X-IRMC-LUID is arbitrary text, as long as it's unique, so it shouldn't 
matter. 

To get an accented character, you can try removing the 
"ENCODING=QUOTED-PRINTABLE"
part and using native UTF-8, or using =C3=A8 instead of =E8: 00E8 is the UTF-16
encoding for small e with grave, the UTF-8 encoding is C3 A8
(http://www.utf8-chartable.de/)

Please comment if one of these options works.

Original comment by duckt...@gmail.com on 28 May 2009 at 4:21

GoogleCodeExporter commented 9 years ago
Sorry for the late reply, but I didn't have time to check this before ...

The solution by using =C3=A8 instead of =E8 worked !
The solution by replacing "ENCODING=QUOTED-PRINTABLE:" by "ENCODING=UTF-8:" 
worked
too with saving my file to utf-8 !
Without ENCODING=UTF-8 or ENCODING=QUOTED-PRINTABLE,the contact name is either
skipped or the special character is skipped.

So if those buggying workaround done with kate and search/replace could be done 
by
vcardio automagically, it could be great ;)

Original comment by dola...@gmail.com on 10 Aug 2009 at 11:02