# Merging in document contact information

**URL:** <http://discourse.egroupware.org/t/merging-in-document-contact-information/33645>\
**Category:** eGW-developers\
**Created:** [August 14, 2009, 8:31am UTC](http://discourse.egroupware.org/t/merging-in-document-contact-information/33645 "2009-08-14T08:31:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeff](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/z/b77776/32.png) [@zeff](http://discourse.egroupware.org/u/zeff)\
**Post date:** [August 14, 2009, 8:31am UTC](http://discourse.egroupware.org/t/merging-in-document-contact-information/33645/1 "2009-08-14T08:31:39Z")

</div>

HI, I try to insert contact information from addressbook in document and instead of Russian words which have to be inserted in it I get something like this РﾘСЂРёРЅР° Р’Р»Р°РґРёРјРёСЂРѕРІРЅР° РђР±СЂР°РјРѕРІР°.  
Please someone help me.  
PS. Sorry, for my English

---

<div class="post-metadata">

**Author:** ![Oscar\_van\_Eijk-3](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/o/ecd19e/32.png) [@Oscar\_van\_Eijk-3](http://discourse.egroupware.org/u/Oscar_van_Eijk-3)\
**Post date:** [August 14, 2009, 1:04pm UTC](http://discourse.egroupware.org/t/merging-in-document-contact-information/33645/2 "2009-08-14T13:04:13Z")

</div>

That looks pretty Russian to me 🙂

(sorry, couldn’t resist…)

What kind of document are you talking about? If it’s, lets say, MSWORD,  
you need support from Microsoft and we probably can’t help you…

---

<div class="post-metadata">

**Author:** ![Leithoff\_Klaus](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@Leithoff\_Klaus](http://discourse.egroupware.org/u/Leithoff_Klaus)\
**Post date:** [August 14, 2009, 1:37pm UTC](http://discourse.egroupware.org/t/merging-in-document-contact-information/33645/3 "2009-08-14T13:37:05Z")

</div>

Check the Charset Settings for CSV Export (General Preferences and/or  
Addressbook Preferences).

---

<div class="post-metadata">

**Author:** ![zeff](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/z/b77776/32.png) [@zeff](http://discourse.egroupware.org/u/zeff)\
**Post date:** [August 14, 2009, 6:07pm UTC](http://discourse.egroupware.org/t/merging-in-document-contact-information/33645/4 "2009-08-14T18:07:51Z")

</div>

OpenOffice.

it seems I have found the problem solving:  
  
class.addressbook\_merge.inc.php  
  
  
  
…  
  
function merge($document,$ids,&$err)  
  
{  
  
…  
  
if ($this-\>contacts-\>prefs[‘csv\_charset’]) // if we have an export-charset defined, use it here to  
  
{  
  
$replacements = $GLOBALS[‘egw’]-\>translation-\>convert($replacements,$GLOBALS[‘egw’]-\>translation-\>charset(),$this-\>contacts-\>prefs[‘csv\_charset’]);  
}  
  
**foreach ($replacements as $r=\>$rr)**  
  
**{**  
  
**$replacements[$r]=iconv(“utf-8”,“cp1251”,$rr);**  
  
**}**  
  
   
  
…  
  
maybe it is not very clever mode and I will be glad to hear another way:)  
  
  
  
  
thanks for response:)

---

<div class="post-metadata">

**Author:** ![zeff](http://discourse.egroupware.org/letter_avatar_proxy/v4/letter/z/b77776/32.png) [@zeff](http://discourse.egroupware.org/u/zeff)\
**Post date:** [August 14, 2009, 6:14pm UTC](http://discourse.egroupware.org/t/merging-in-document-contact-information/33645/5 "2009-08-14T18:14:21Z")

</div>

> [@](#):
>
> Check the Charset Settings for CSV Export (General Preferences and/or  
> Addressbook Preferences)

I don’t know why but change of this settings change nothing
