gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnokii + kaddressbook + encoding


From: Helge Deller
Subject: Re: gnokii + kaddressbook + encoding
Date: Tue, 1 Jun 2004 00:33:18 +0200
User-agent: KMail/1.6.52

Hi Pawel,

On Monday 31 May 2004 22:05, Pawel Kot wrote:
> Could you please do it with gnokii? Ie.
> $ gnokii --getphonebook ME 123 -r > entry.txt
> [fix the entry if it is necessary]
> $ cat entry.txt | gnokii --writephonebook -o
> I think something may get wrong when preparing phonebook entry.

Here is the new result. Tested with GNOKII Version 0.6.1 from CVS:

Writing with gnokii:
entry.txt has:
Jürgen Ölm;02102;ME;132;5;11;6;3;02102;9;0;4;\;\;Hansastraße 1\;Öhne 
Gründ\;\;0\;

address@hidden:/mnt/hda5/home/deller> cat entry.txt | gnokii --writephonebook -o
GNOKII Version 0.6.1
....
Writing phonebook entry Jürgen Ölm...
Message sent: 0x03 / 0x0098
00 01 00 0b 00 01 01 00 00 10 02 05 00 84 00 00 |
00 00 00 00 00 04 07 00 00 1e ff 18 00 4a 00 fc |              J
00 72 00 67 00 65 00 6e 00 20 00 d6 00 6c 00 6d |  r g e n     l m
00 00 00 00 1e 00 00 08 ff 06 00 55 0b 00 00 14 |            U
ff 06 00 00 00 0a 00 30 00 32 00 31 00 30 00 32 |        0 2 1 0 2
09 00 00 48 ff 42 00 3b 00 3b 00 48 00 61 00 6e |    H B ; ; H a n
00 73 00 61 00 73 00 74 00 72 00 61 00 df 00 65 |  s a s t r a   e
00 20 00 31 00 3b 00 d6 00 68 00 6e 00 65 00 20 |    1 ;   h n e
00 47 00 72 00 fc 00 6e 00 64 00 3b 00 3b 00 30 |  G r   n d ; ; 0
00 3b 00 00 00 00 00 00                         |  ;
Message received: 0x03 / 0x0016
01 46 00 0c 00 01 04 00 00 10 03 00 00 84 00 00 |  F
00 00 05 00 00 00                               |
Received message type 03
Write Succeeded: memory type: Internal memory, loc: 132, name: Jürgen Ölm, 
number: 02102

Summary: gnokii command line tool works OK.


And with kaddressbook via gnokii:
kaddressbook: WARNING: Write #62: name=Jürgen Ölm, namelen=12, number=02102
kaddressbook: WARNING:  SubTel #0: entry_type=11, number_type=6, number=02102
kaddressbook: WARNING:  SubTel #1: entry_type=9, number_type=0, 
number=;;Hansastraße 1;Öhne Gründ;;0;
Writing phonebook entry Jürgen Ölm...
Message sent: 0x03 / 0x0098
00 01 00 0b 00 01 01 00 00 10 02 05 00 3e 00 00 |              >
00 00 00 00 00 04 07 00 00 1e ff 18 00 4a 00 fc |              J
00 72 00 67 00 65 00 6e 00 20 00 d6 00 6c 00 6d |  r g e n     l m
00 2e 00 30 1e 00 00 08 ff 06 00 55 0b 00 00 14 |  . 0       U
ff 06 00 00 00 0a 00 30 00 32 00 31 00 30 00 32 |        0 2 1 0 2
09 00 00 48 ff 42 00 3b 00 3b 00 48 00 61 00 6e |    H B ; ; H a n
00 73 00 61 00 73 00 74 00 72 00 61 00 df 00 65 |  s a s t r a   e
00 20 00 31 00 3b 00 d6 00 68 00 6e 00 65 00 20 |    1 ;   h n e
00 47 00 72 00 fc 00 6e 00 64 00 3b 00 3b 00 30 |  G r   n d ; ; 0
00 3b 00 3b 00 47 00 65                         |  ; ; G e
Message received: 0x03 / 0x0016
01 46 00 0c 00 01 04 00 00 10 03 00 00 3e 00 00 |  F           >
00 00 05 00 00 00                               |
Received message type 03

The namelen=12 at the top indicates, that "Jürgen Ölm" has 12 bytes, where "ü" 
and "Ö" spawns two bytes.
12 was calculated by strlen() on the enty.name field.
Somehow here the bytes "00 2e 00 30 1e" in line 4 got introduced by libgnokii.
Maybe you do some conversion in gnokii which should be done in libgnokii 
instead ?

Helge




reply via email to

[Prev in Thread] Current Thread [Next in Thread]