Index: openacs-4/packages/contacts/lib/werbemailing.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/lib/werbemailing.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/lib/werbemailing.tcl 24 Apr 2006 17:46:34 -0000 1.2 +++ openacs-4/packages/contacts/lib/werbemailing.tcl 8 Nov 2006 18:36:11 -0000 1.3 @@ -115,7 +115,8 @@ if {![contact::employee::get -employee_id $user_id -array user_info]} { ad_return_error $user_id "User is not an employee" } - + + set employee(name) [encoding convertto utf-8 $employee(name)] set file [open "${template_path}/content.xml"] fconfigure $file -translation binary set template_content [read $file] @@ -132,7 +133,7 @@ eval [template::adp_compile -string $style_content] set style $__adp_output - set odt_filename [contact::oo::change_content -path "${template_path}" -document_filename "document.odt" -contents [list "content.xml" $content "styles.xml" $style]] + set odt_filename [contact::oo::change_content -path "${template_path}" -document_filename "document.odt" -contents [list "content.xml" $content "styles.xml" $style] -encoding "iso8859-1"] set title "werbemailing" set item_id [contact::oo::import_oo_pdf -oo_file $odt_filename -parent_id $party_id -title "${title}.pdf"] set revision_id [content::item::get_best_revision -item_id $item_id]