# copying file.j2 to the mahine returning error

**URL:** <https://forum.ansible.com/t/copying-file-j2-to-the-mahine-returning-error/28965>\
**Category:** Ansible Project\
**Created:** [November 7, 2018, 3:09pm UTC](https://forum.ansible.com/t/copying-file-j2-to-the-mahine-returning-error/28965 "2018-11-07T15:09:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadim\_mansour](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@nadim\_mansour](https://forum.ansible.com/u/nadim_mansour)\
**Post date:** [November 7, 2018, 3:09pm UTC](https://forum.ansible.com/t/copying-file-j2-to-the-mahine-returning-error/28965/1 "2018-11-07T15:09:30Z")

</div>

I have a configuration file.j2 , I am trying to copy the file from ansible templates to destination(server)  
it keeps giving the below error

fatal: [uat\_cdxdb]: FAILED! =\> {“changed”: false, “msg”: “Template source files must be utf-8 encoded”}

please advice ?
