# BUG: Using copyright symbol © in Copyright Notice causes code files (.h, .cpp, & .cs) to encode in UTF-16 (LE) which can't be compiled in Xcode

**URL:** <https://forums.unrealengine.com/t/bug-using-copyright-symbol-in-copyright-notice-causes-code-files-h-cpp-cs-to-encode-in-utf-16-le-which-cant-be-compiled-in-xcode/386938>\
**Category:** C++\
**Tags:** bug, engine-compile, unreal-engine, bug-report, editor, question\
**Created:** [March 4, 2017, 5:04pm UTC](https://forums.unrealengine.com/t/bug-using-copyright-symbol-in-copyright-notice-causes-code-files-h-cpp-cs-to-encode-in-utf-16-le-which-cant-be-compiled-in-xcode/386938 "2017-03-04T17:04:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcd0d281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcd0d281](https://forums.unrealengine.com/u/anonymous_user_bcd0d281)\
**Post date:** [March 4, 2017, 5:04pm UTC](https://forums.unrealengine.com/t/bug-using-copyright-symbol-in-copyright-notice-causes-code-files-h-cpp-cs-to-encode-in-utf-16-le-which-cant-be-compiled-in-xcode/386938/1 "2017-03-04T17:04:48Z")

</div>

I’ve had this issue for a while, and finally found what appears to be a root cause.

If you have the copyright symbol © in the Copyright Notice in Project Settings, this causes generated code files (.h, .cpp, & .cs files) to be encoded in UTF-16 (LE). Xcode cannot compile UTF-16 (LE) files on macOS.

You can fix the problem by opening the generated files in a text editor (such as TextWrangler) and resaving them as UTF-8 encoded files.

Related AnswerHub: [Why are new classes encoded in UTF-16 (LE)? - C++ - Epic Developer Community Forums](https://answers.unrealengine.com/questions/332921/why-are-new-classes-encoded-in-utf-16-le.html#answer-571421)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [March 27, 2017, 9:23pm UTC](https://forums.unrealengine.com/t/bug-using-copyright-symbol-in-copyright-notice-causes-code-files-h-cpp-cs-to-encode-in-utf-16-le-which-cant-be-compiled-in-xcode/386938/2 "2017-03-27T21:23:14Z")

</div>

Hi ,

Thank you for pointing this out. I was able to reproduce the issue that you described, and have entered [UE-43384](https://issues.unrealengine.com/issue/UE-43384) to have this investigated further.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcd0d281](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcd0d281](https://forums.unrealengine.com/u/anonymous_user_bcd0d281)\
**Post date:** [March 31, 2017, 3:21pm UTC](https://forums.unrealengine.com/t/bug-using-copyright-symbol-in-copyright-notice-causes-code-files-h-cpp-cs-to-encode-in-utf-16-le-which-cant-be-compiled-in-xcode/386938/3 "2017-03-31T15:21:08Z")

</div>

Thanks for entering the issue.
