6.0.0-beta1
9/24/25

[#4407] Sync Notes with Palm using Synthesis Clientwhen ISO-8859-1
Summary Sync Notes with Palm using Synthesis Clientwhen ISO-8859-1
Queue Synchronization
Type Enhancement
State Resolved
Priority 1. Low
Owners karsten (at) horde (dot) org
Requester patrick.abiven (at) apitech (dot) fr
Created 09/11/2006 (6953 days ago)
Due
Updated 10/26/2006 (6908 days ago)
Assigned 09/27/2006 (6937 days ago)
Resolved 10/26/2006 (6908 days ago)
Milestone
Patch No

History
10/26/2006 07:11:07 AM Karsten Fourmont State ⇒ Resolved
 
09/29/2006 12:38:12 PM Karsten Fourmont Comment #3 Reply to this comment
A manual conversion shouldn't be necessary as long as the right NLS 
charset is set. However explicitly setting this was missing when using 
wbxml.



I added two lines:

         NLS::setCharset($decoder->getCharsetStr());

         String::setDefaultCharset($decoder->getCharsetStr());



to syncml_wbxml.php in the rpc package.



Please update the RPC package to cvs and give it a try. Thanks!



The horde log should report something like



"SyncML: authorized=1 version=1 msgid=# source=... charset=UTF-8 
wbxml=1 [on line 293..."



If there's another charset, something is wrong.


09/27/2006 11:09:04 AM Jan Schneider Comment #2
Assigned to Karsten Fourmont
State ⇒ Assigned
Reply to this comment
This should be done a bit smarter with String::convertCharset(), but 
thanks for the start.
09/11/2006 01:23:53 PM patrick (dot) abiven (at) apitech (dot) fr Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Sync Notes with Palm using Synthesis Clientwhen ISO-8859-1
Queue ⇒ Synchronization
New Attachment: patch_ISO-8859-1 Download
Reply to this comment
Using Horde CVS and the Synthesis client 2.5 we are able to 
synchronize Notes between Horde and Palm. Thanks for your great work   
done on SyncML !

Our database charset is ISO-8859-1 and the Synthesis client uses UTF-8 
for Notes (text/plain). So we have to modify 
/lib/SyncML/Device/Synthesis.php :



  function convertServer2Client:

     if (NLS::getCharset() != "UTF-8" &&

        strstr($contentType,'text/plain') !== false) {

            $content = utf8_encode($content);

  }



  function convertClient2Server:

      if (NLS::getCharset() != "UTF-8" &&

         strstr($contentType, 'text/plain') !== false) {

            $content = utf8_decode($content);

      }


Saved Queries