On Mon, Feb 09, 2009 at 12:28:32PM +0100, Bojan Vondra wrote:
> Hello,
> 
> I have trouble in synchronization of contacts that contain croatian 
> characters "ćčđ" (barry-opensync reports an error:  "Desktop: unexpected 
> command of 0x41 instead of expected 0x40"). I use Blackberry Curve 8300 and I 
> did tests with Barry-0.15, built on openSUSE 10.3. I use KitchenSync to 
> synchronize my device with PIM Kontact. If I test Barry with contacts 
> containing german umlauts (provided that there are no croatian characters in 
> phone address book), everything (contacts and calendar) is successfully 
> synchronized. Now, if I export my contacts from Outlook as CSV list and than 
> import it in KaddressBook, I must use CP1250 encoding to properly display my 
> contacts. Contacts with german umlauts are also displayed correctly using 
> this encoding. Could it be that Blackberry also uses CP1250 encoding (at 
> least in devices for the Eastern Europe)? Where can I change encoding in 
> Barry source for the opensync plugin? Is there any tip to do this?

Hi Bojan,

The Blackberry appears to use the WINDOWS-1252 charset.  When using the
command line tools, this charset data is passed straight through as raw
data.

I'm not sure which version of Barry you are using, but in the devel tree,
support for charset conversions, and specifically UTF-8, have been added to
the opensync plugin as well as the command line tools.  For example, you
can convert Blackberry address book data to UTF-8 with the following command
line:

        btool -d "Address Book" -i UTF-8

I would be curious to know if this works for you, with Croatian characters.

The opensync plugin, again in the devel tree for now, converts to UTF-8 before
sending the data to the opensync framework.  This has so far received a bit
of testing, but more testing is always welcome.

If you could try the latest devel tree, and report back, that would be great.
If you still get the 0x41/0x40 error, please add the -v option to the above
btool command and send the matching output (at least the last few packets).

See http://www.netdirect.ca/software/packages/barry/ for links to binary
package repositories that have CVS snapshots, or read
http://www.netdirect.ca/software/packages/barry/cvs.php for instructions
on how to comiple from CVS or git.

- Chris


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel

Reply via email to