# UTF 16 error

**URL:** <https://forums.unrealengine.com/t/utf-16-error/408445>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, UE4, CPP, Blueprint, question\
**Created:** [October 31, 2017, 9:57pm UTC](https://forums.unrealengine.com/t/utf-16-error/408445 "2017-10-31T21:57:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f08033e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f08033e](https://forums.unrealengine.com/u/anonymous_user_6f08033e)\
**Post date:** [October 31, 2017, 9:57pm UTC](https://forums.unrealengine.com/t/utf-16-error/408445/1 "2017-10-31T21:57:26Z")

</div>

Hello

I’ve been trying to package my project to android (ETC1) and I get the following errors

```
 UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: C:/Users//Documents/Unreal Projects/ProyectoAlfaBackup/Intermediate/Plugins/Android_ETC1/NativizedAssets/Intermediate/Build/Android/UE4/Development/NativizedAssets/Module.NativizedAssets.3_of_5.cpp(6,10) : fatal error: UTF-16 (LE) byte order mark detected in 'C:\Users\\Documents\Unreal Proj
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: 1 error generated.
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: C:/Users//Documents/Unreal Projects/ProyectoAlfaBackup/Intermediate/Plugins/Android_ETC1/NativizedAssets/Intermediate/Build/Android/UE4/Development/NativizedAssets/Module.NativizedAssets.gen.3_of_5.cpp(6,10) : fatal error: UTF-16 (LE) byte order mark detected in 'C:\Users\\Documents\Unreal 
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: C:/Users//Documents/Unreal Projects/ProyectoAlfaBackup/Intermediate/Plugins/Android_ETC1/NativizedAssets/Intermediate/Build/Android/UE4/Development/NativizedAssets/Module.NativizedAssets.gen.2_of_5.cpp(7,10) : fatal error: UTF-16 (LE) byte order mark detected in 'C:\Users\\Documents\Unreal 
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: 1 error generated.
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: 1 error generated.
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: C:/Users//Documents/Unreal Projects/ProyectoAlfaBackup/Intermediate/Plugins/Android_ETC1/NativizedAssets/Intermediate/Build/Android/UE4/Development/NativizedAssets/Module.NativizedAssets.gen.1_of_5.cpp(5,10) : fatal error: UTF-16 (LE) byte order mark detected in 'C:\Users\\Documents\Unreal 
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: C:/Users//Documents/Unreal Projects/ProyectoAlfaBackup/Intermediate/Plugins/Android_ETC1/NativizedAssets/Intermediate/Build/Android/UE4/Development/NativizedAssets/Module.NativizedAssets.gen.4_of_5.cpp(8,10) : fatal error: UTF-16 (LE) byte order mark detected in 'C:\Users\\Documents\Unreal 
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: 1 error generated.
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: 1 error generated.
  UATHelper: Packaging (Android (ETC1)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: C:\Users\\Documents\Unreal Projects\ProyectoAlfaBackup\Intermediate\Plugins\Android_ETC1\NativizedAssets\Binaries\Android\UE4-NativizedAssets-armv7-es2.a
  UATHelper: Packaging (Android (ETC1)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.17\Engine\Binaries\DotNET\UnrealBuildTool.exe ProyectoAlfaBackup Android Development -Project="C:\Users\\Documents\Unreal Projects\ProyectoA
  PackagingResults: Error: Unknown Error

```

I looked up the UTF-16 problem and it seems like it has to do with the encoding of those cpp files. However, I can’t find any option to change the encoding of the automatically generated files (the build tool is set to UTF 8 btw), so I’m kinda lost at this point.

Any help is appreciated

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [November 1, 2017, 3:14am UTC](https://forums.unrealengine.com/t/utf-16-error/408445/2 "2017-11-01T03:14:25Z")

</div>

I have the same issue: [https://answers.unrealengine.com/questions/718610/418-linux-build-errors-with-clang10-bp-nativizatio.html](https://answers.unrealengine.com/questions/718610/418-linux-build-errors-with-clang10-bp-nativizatio.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e2a0040f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e2a0040f](https://forums.unrealengine.com/u/anonymous_user_e2a0040f)\
**Post date:** [November 2, 2017, 3:47pm UTC](https://forums.unrealengine.com/t/utf-16-error/408445/3 "2017-11-02T15:47:56Z")

</div>

Hi there,

The presence of non-ASCII characters in a Blueprint function graph name will currently lead to this issue in 4.18.0, with Blueprint nativization enabled for certain platform targets where the compiler toolchain does not support UTF-16 encoded source files.

The suggested workaround for now is to avoid using non-ASCII characters in the Blueprint function name if possible until this can be addressed. This issue should eventually become available for tracking here: [Unreal Engine Issues and Bug Tracker (UE-51910)](https://issues.unrealengine.com/issue/UE-51910).

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [November 2, 2017, 3:50pm UTC](https://forums.unrealengine.com/t/utf-16-error/408445/4 "2017-11-02T15:50:49Z")

</div>

While that could be the root of the issue, but I checked - all my function/variables/etc names are within standard ASCII characters (latin keyboard).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e2a0040f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e2a0040f](https://forums.unrealengine.com/u/anonymous_user_e2a0040f)\
**Post date:** [November 2, 2017, 3:57pm UTC](https://forums.unrealengine.com/t/utf-16-error/408445/5 "2017-11-02T15:57:54Z")

</div>

Agreed, however in that post I noticed that for the “GetТехт\_Attributes” function it appears the ‘Техт’ substring consists of non-ASCII characters.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f08033e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f08033e](https://forums.unrealengine.com/u/anonymous_user_6f08033e)\
**Post date:** [November 4, 2017, 5:32am UTC](https://forums.unrealengine.com/t/utf-16-error/408445/6 "2017-11-04T05:32:07Z")

</div>

thanks, in some parts my code had the letter ñ

---

<div class="post-metadata">

**Author:** ![Raptagon\_Studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raptagon\_Studios](https://forums.unrealengine.com/u/Raptagon_Studios)\
**Post date:** [April 24, 2018, 6:53pm UTC](https://forums.unrealengine.com/t/utf-16-error/408445/7 "2018-04-24T18:53:10Z")

</div>

I’m having the same issue in 4.19, in my project.cpp file. However there are no non-ASCII characters in the file or the name of the file…

---

<div class="post-metadata">

**Author:** ![Owl\_Snowy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Owl\_Snowy](https://forums.unrealengine.com/u/Owl_Snowy)\
**Post date:** [March 23, 2022, 10:28am UTC](https://forums.unrealengine.com/t/utf-16-error/408445/8 "2022-03-23T10:28:43Z")

</div>

I had Cyrillic ‘C’ in the name of the icon files instead of the Latin ‘C’. They look the same, but they are 2 different symbols. Avoid file names and function in bluprints other than English.
