# Merge charset wrong

**URL:** <https://pdfjs.community/t/merge-charset-wrong/682>\
**Category:** Technical Support\
**Created:** [April 5, 2021, 1:10pm UTC](https://pdfjs.community/t/merge-charset-wrong/682 "2021-04-05T13:10:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elvisdosreis](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/elvisdosreis/32/311_2.png) [@elvisdosreis](https://pdfjs.community/u/elvisdosreis)\
**Post date:** [April 5, 2021, 1:10pm UTC](https://pdfjs.community/t/merge-charset-wrong/682/1 "2021-04-05T13:10:39Z")

</div>

I’m having trouble merging document, accented text is getting wrong charset.

```javascript
const xfdf = await this.annotManager.exportAnnotations({links: false, widgets: false});
    const fileData = await this.docViewer.getDocument().getFileData({});
    const blob = new Blob([fileData], {type: 'application/pdf'});

    const data = new FormData();
    data.append('xfdf', xfdf);
    data.append('file', blob);
    data.append('license', 'xxxxxxxxxx');

    // Process the file
    const response = await fetch('https://api.pdfjs.express/xfdf/merge', {
      method: 'post',
      body: data
    }).then(resp => resp.json());

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [April 5, 2021, 1:10pm UTC](https://pdfjs.community/t/merge-charset-wrong/682/2 "2021-04-05T13:10:40Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

- [Compiled Webviewer Installation](https://pdfjs.community/t/compiled-webviewer-installation/209/3)
- [Creating custom annotations for your viewer - Saving custom XFDF (optional)](https://pdfjs.express/documentation/annotation/custom-annotations#saving-custom-xfdf-(optional))
- [How to merge signature annotation with PDF document](https://pdfjs.community/t/how-to-merge-signature-annotation-with-pdf-document/558/2)
- [Customize toolbar in viewer - Header items - StatefulButton](https://pdfjs.express/documentation/ui-customization/customizing-header#statefulbutton)
- [558 1](https://pdfjs.community/t/how-to-merge-signature-annotation-with-pdf-document/558/1)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [April 5, 2021, 2:24pm UTC](https://pdfjs.community/t/merge-charset-wrong/682/3 "2021-04-05T14:24:42Z")

</div>

Hey there,

This is a known issue and we are working on fixing it! It will be fixed early this week.

Thanks,  
Logan

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [April 5, 2021, 2:24pm UTC](https://pdfjs.community/t/merge-charset-wrong/682/4 "2021-04-05T14:24:44Z")

</div>

Closed on April 5, 2021, 2:24pm UTC


