# Wrong encoding in VS output log

**URL:** <https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, UE4, question\
**Created:** [April 22, 2016, 8:26am UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047 "2016-04-22T08:26:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5922fa19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5922fa19](https://forums.unrealengine.com/u/anonymous_user_5922fa19)\
**Post date:** [April 22, 2016, 8:26am UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/1 "2016-04-22T08:26:14Z")

</div>

Hi All!  
I use UE from source and I have got incorrect encoding in output log.  
My OS is Windows 8.1 with Russian language.

```
4> [47/1734] Link UE4Editor-InputCore.dll
4> ��������� ���������� D:\UE_projects\ue_source\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-InputCore.lib � ������ D:\UE_projects\ue_source\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-InputCore.exp

```

How can I fix it?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [April 22, 2016, 5:59pm UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/2 "2016-04-22T17:59:10Z")

</div>

Hello ,

Is this your first time compiling source? If not, did this happen with previously compiled source builds as well? A possible fix is to change the font that Visual Studio uses, as I’m unsure if the default font supports Cyrillic characters.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5922fa19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5922fa19](https://forums.unrealengine.com/u/anonymous_user_5922fa19)\
**Post date:** [April 25, 2016, 2:09pm UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/3 "2016-04-25T14:09:28Z")

</div>

It was first time compiling source, but it repeats again. I checked the fonts and all of they support Cyrillic characters.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [April 25, 2016, 8:16pm UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/4 "2016-04-25T20:16:26Z")

</div>

Thank you for that information. I’ve placed a bug report in for the issue under the number UE-29914. I’ll be sure to let you know if there are any updates made to the report or if we need any more information from you about the problem.

Have a nice day!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5922fa19](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5922fa19](https://forums.unrealengine.com/u/anonymous_user_5922fa19)\
**Post date:** [April 26, 2016, 4:47am UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/5 "2016-04-26T04:47:15Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Joe\_Conley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joe\_Conley](https://forums.unrealengine.com/u/Joe_Conley)\
**Post date:** [May 10, 2016, 4:35am UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/6 "2016-05-10T04:35:59Z")

</div>

Hi ,

I’m sorry to report that we investigated the same issue before in this bug:

UE-14726 - Visual studio output log is garbled when running in non-ASCII language

and found that it is a bug with the way the debug window in Visual Studio handles non-ASCII text. Here’s a comment from our engineer:

> Unfortunately, this seems to be a  
> known limitation, beyond our control:
> 
> [Bing](https://connect.microsoft.com/VisualStudio/feedback/details/770480/outputdebugstringw-cannot-correctly-handle-unicode-characters)
> 
> [OutputDebugStringA function (debugapi.h) - Win32 apps | Microsoft Learn](http://msdn.microsoft.com/en-us/library/windows/desktop/aa363362(v=vs.85).aspx)
> 
> “OutputDebugStringW converts the  
> specified string based on the current  
> system locale information and passes  
> it to OutputDebugStringA to be  
> displayed. As a result, some Unicode  
> characters may not be displayed  
> correctly.”

Thanks for reporting the issue, and sorry I couldn’t have better news for you.

---

<div class="post-metadata">

**Author:** ![SeriouSerg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SeriouSerg](https://forums.unrealengine.com/u/SeriouSerg)\
**Post date:** [April 4, 2018, 4:49am UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/7 "2018-04-04T04:49:35Z")

</div>

You have to do this:

 ![236204-qip-shot-screen-114.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/1/10151a0d86cd980f6e545de9d92d70e366e2498a.png)

And everything is ok!

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 4, 2018, 6:13am UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/8 "2018-08-04T06:13:38Z")

</div>

Thanks. This solution working fine.

---

<div class="post-metadata">

**Author:** ![ZVReKK](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZVReKK](https://forums.unrealengine.com/u/ZVReKK)\
**Post date:** [September 25, 2018, 2:01pm UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/9 "2018-09-25T14:01:46Z")

</div>

Changing system locale for non-Unicode programs breaks the output of many programs. Instead, you can change compiler locale to English:

- Add the English language pack in Visual Studio Installer.
- Go to %VSInstallDir%\VC\Tools\MSVC\(version)\bin\Hostx64\x64 and remove your [Locale](https://www.science.co.il/language/Locale-codes.php) folder (1049 for Russian), but leave 1033 (it must exist).
- (Perhaps you need to change the language in VS to English and vice versa.)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3f526e57](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3f526e57](https://forums.unrealengine.com/u/anonymous_user_3f526e57)\
**Post date:** [October 11, 2020, 2:07am UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/10 "2020-10-11T02:07:37Z")

</div>

![318154-屏幕截图-2020-10-11-100506.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/c/47c5acda75dacc07d391c28fe1f1a53e4cf8f14b.png)

Now Win10 allow us to set utf-8. I finally can see the output clearly

---

<div class="post-metadata">

**Author:** ![Shaack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shaack](https://forums.unrealengine.com/u/Shaack)\
**Post date:** [November 6, 2020, 4:09pm UTC](https://forums.unrealengine.com/t/wrong-encoding-in-vs-output-log/355047/11 "2020-11-06T16:09:52Z")

</div>

Confirm, this option is an solution!

 ![321278-регион-2020-11-06-180815.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/7/587de7462de4234b672228195d082e8d59925084.png)
