detail.php
OW2 Forge: Detail: 306692 Problem handling character encoding in incoming sif/contact xml

Advanced - Powered by Google


   
Log In
New Account
  
 
Home
My Page
Project Tree
Project Openings
Funambol
          
 
 
Summary
Tracker
Lists
Tasks
Docs
News
CVS
Files
                
 

Tracker: Bugs

Submit New | Browse | Admin | ExportToXml

[ #306692 ] Problem handling character encoding in incoming sif/contact xml

Date:
2007-02-21 20:17
Priority:
5
Submitted By:
Eric Durand-Tremblay (ericdt)
Assigned To:
Giuseppe Monticelli (jprimes)
Category:
client blackberry
State:
Open
Summary:
Problem handling character encoding in incoming sif/contact xml

Detailed description:
In reception of a sif/contact encoded in utf-8, contacts name with accent are wrongly displayed in the blackberry UI. I think sif/contact values should be decoded before inserting to blackberry database. Here is an exemple of an Add command who produce this problem. <Add> <CmdID>21</CmdID> <Meta> <Format xmlns="syncml:metinf">b64</Format> <Type xmlns="syncml:metinf">text/x-s4j-sifc</Type> </Meta> <Item> <Source> <LocURI>1797</LocURI> </Source> <Data>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48Y29udGFjdD48TGFzdE5hbWU+RGF2aWQ8L0xhc3ROYW1lPjxGaXJzdE5hbWU+RnJhbsOnb2lzZTwvRmlyc3ROYW1lPjxGaWxlQXM+RGF2aWQsIEZyYW7Dp29pc2U8L0ZpbGVBcz48U3ViamVjdD5EYXZpZCwgRnJhbsOnb2lzZTwvU3ViamVjdD48QmlydGhkYXk+MDAwMC0wMC0wMFQwMDAwMDBaPC9CaXJ0aGRheT48QW5uaXZlcnNhcnk+MDAwMC0wMC0wMFQwMDAwMDBaPC9Bbm5pdmVyc2FyeT48U2Vuc2l0aXZpdHkgLz48Qm9keT5TdXBlciBjaGVmIHBvbGl0aXF1ZSAyPC9Cb2R5PjxDYXRlZ29yaWVzPkNsaWVudDwvQ2F0ZWdvcmllcz48L2NvbnRhY3Q+</Data> </Item> </Add>

Add A Comment:

Please login

Followup

Message
Date: 2007-02-22 00:07
Sender: ericdt
Logged In: YES 
user_id=11655

This Patch contain a almost complete rewrite of 
buildMapFromXML. 

1) Parse the xml in a more effective way.
2) Decode UTF-8 encoding

Attached Files:

Name Description Download
UTF_Enhanced_Patch.txt Rewrite of sif/contact xml parsing + Fix encoding Download

Changes:

Resource id #66listtable
File Added
Field Old Value Date By
File Added843: UTF_Enhanced_Patch.txt2007-02-22 00:07ericdt

Copyright © 1999-2008, OW2 Consortium | contact | You've got a problem ? Please report an issue using your OW2 forge account credentials