[turba] Character encoding in exported address book
Otto Stolz
Otto.Stolz at uni-konstanz.de
Tue Jan 23 07:42:46 PST 2007
Hello,
my installation: Horde 3.1.3, Imp H3 (4.1.3), Turba H3 (2.1.3);
excerpts from the configuration can be found below.
From the »Import/Export Adress Books« screen, I can export my
personal addressbook in four different formats:
- Comma separated values,
- Comma separated values (Microsoft Outlook),
- Tab separated values,
- vCard,
The three list formats are exported in UTF-8 (with a leading BOM),
whilst the vCard format is exported in ASCII (with UTF-8/quoted-printable
encoding of non-ASCII characters).
Now, the import form has a selection widget titled »Select the charset
of the source file«, with ISO 8859-1 as its default.
I'd rather have UTF-8 as the default, or no selection at all, so my users
have less oportunity to make errors and besiege our help desk.
Questions:
- Is it wise to abandon the selection of the import encoding, altogether,
or are there indeed notebooks with other encodings in the wild?
- How can I set UTF-8 as the default encoding?
- How can I remove the charset selection widget from the import form?
- If the answer on my 1st question is "that depends", would it be
possible to have the charset selection widget adapt itself to the
choice made in the »format of the source file« widget?
Note that there is no pertinent configuration option, neither in
turba/config/prefs.php nor in Horde's Administration/Setup/Turba
menu.
Thanks for your time,
and best wishes,
Otto Stolz
-------------------- From turba/config/sources.php --------------------
$cfgSources['localsql'] = array(
'title' => _("My Address Book"),
'type' => 'sql',
// The default connection details are pulled from the Horde-wide SQL
// connection configuration.
'params' => array_merge($conf['sql'], array('table' => 'turba_objects')),
...
'export' => true,
'browse' => true,
'use_shares' => false,
);
$cfgSources['localldap'] = array(
'title' => _("E-Mail directory Uni Konstanz"),
'type' => 'ldap',
...
'export' => false,
'browse' => false
);
-------------------- End of turba/config/sources.php --------------------
-------------------- From turba/config/prefs.php --------------------
$_prefs['default_dir'] = array(
'value' => 'localsql',
'locked' => true,
'shared' => true,
'type' => 'select',
'desc' => _("This will be the default address book when adding or importing contacts.")
);
-------------------- End of turba/config/prefs.php --------------------
-------------------- Horde Permissions --------------------
All Permissions
+- Address Book (turba): Show, Read, Edit, Delete
| +- Sources (sources): Show, Read, Edit, Delete
| +- E-Mail directory Uni Konstanz (localldap): Show, Read
| +- My Address Book (localsql): Show, Read, Edit, Delete
+- Horde (horde): Read, Edit, Delete
-------------------- End of Horde Permissions --------------------
More information about the turba
mailing list