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 |
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.
Assigned to Karsten Fourmont
State ⇒ Assigned
thanks for the start.
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
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);
}