# German Umlaute not supported using Log Messages

**URL:** <https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552>\
**Category:** Bugs\
**Tags:** fixed\
**Created:** [August 20, 2019, 3:03pm UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552 "2019-08-20T15:03:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)\
**Post date:** [August 20, 2019, 3:03pm UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/1 "2019-08-20T15:03:53Z")

</div>

Hi,

when using a custom log message with German Umlaute, these don’t get handled correctly.

For example a C# console app which writes to the console:  
Console.WriteLine($“Test: AE=Ä ae=ä OE=Ö oe=ö UE=Ü ue=Ü ss=ß”);

is being logged by Continua using the Log Output option:  
Test: AE=Ž ae=„ OE=™ oe=” UE=š ue=š ss=á

This bug affects custom log messages as well.

Thomas

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 21, 2019, 5:32am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/2 "2019-08-21T05:32:56Z")

</div>

Hi Thomas,

What code page does the console use on your agent? Type `chcp` into a Command Prompt to find out.

Can you try running the following in your c# console app and let us know the output?

```auto
Console.WriteLine("Default output encoding code page: " + Console.OutputEncoding.CodePage);
Console.WriteLine("================");
Console.WriteLine("Test: AE = Ä ae = ä OE = Ö oe = ö UE = Ü ue = Ü ss = ß");
Console.WriteLine();

Console.OutputEncoding = Encoding.GetEncoding(CultureInfo.CurrentCulture.TextInfo.OEMCodePage);
Console.WriteLine("OEM code page: " + CultureInfo.CurrentCulture.TextInfo.OEMCodePage);
Console.WriteLine("=============");
Console.WriteLine("Test: AE = Ä ae = ä OE = Ö oe = ö UE = Ü ue = Ü ss = ß");
Console.WriteLine();

Console.OutputEncoding = Encoding.GetEncoding(850);
Console.WriteLine("Code page 850");
Console.WriteLine("=============");
Console.WriteLine("Test: AE = Ä ae = ä OE = Ö oe = ö UE = Ü ue = Ü ss = ß");
Console.WriteLine();

Console.OutputEncoding = Encoding.GetEncoding(1252);
Console.WriteLine("Code page 1252");
Console.WriteLine("=============");
Console.WriteLine("Test: AE = Ä ae = ä OE = Ö oe = ö UE = Ü ue = Ü ss = ß");
Console.WriteLine();

Console.OutputEncoding = Encoding.UTF8;
Console.WriteLine("UTF8 encoding");
Console.WriteLine("================");
Console.WriteLine("Test: AE = Ä ae = ä OE = Ö oe = ö UE = Ü ue = Ü ss = ß");
Console.WriteLine();

```

---

<div class="post-metadata">

**Author:** ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)\
**Post date:** [August 21, 2019, 6:53am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/3 "2019-08-21T06:53:51Z")

</div>

Hi Dave,

the result of chcp is 850.

The output of a c# console app running under control of Continua on our buildserver (running Win7 Pro German) is:

# Default output encoding code page: 850

Test: AE = Ž ae = „ OE = ™ oe = ” UE = š ue = š ss = á

# OEM code page: 850

Test: AE = Ž ae = „ OE = ™ oe = ” UE = š ue = š ss = á

# Code page 850

Test: AE = Ž ae = „ OE = ™ oe = ” UE = š ue = š ss = á

# Code page 1252

Test: AE = Ä ae = ä OE = Ö oe = ö UE = Ü ue = Ü ss = ß

# UTF8 encoding

Test: AE = Ã„ ae = Ã¤ OE = Ã– oe = Ã¶ UE = Ãœ ue = Ãœ ss = ÃŸ

# Note

Running the same consoleapp on my Win10 german system will produce correct results, also using chcp=850.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 21, 2019, 7:14am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/4 "2019-08-21T07:14:56Z")

</div>

Hi Thomas,

Did you run `chcp` on the agent or build server? From the output, it looks like the default standard output encoding code page while running processes on your agent is 1252.

We’ll look into this a bit further. It may be necessary to provide an option to set the `process.StartInfo.StandardOutputEncoding` for each action.

For now, can you add the line `Console.OutputEncoding = Encoding.GetEncoding(1252);` to your code before writing out your custom log messages?

---

<div class="post-metadata">

**Author:** ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)\
**Post date:** [August 21, 2019, 7:27am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/5 "2019-08-21T07:27:41Z")

</div>

> [@Sparky](#):
>
> Did you run `chcp` on the agent or build server?

In our configuration the server and the agent runs on the same machine.

> [@Sparky](#):
>
> From the output, it looks like the default standard output encoding code page while running processes on your agent is 1252.

Why do you think so? Running ‘chcp’ returns 850.

> [@Sparky](#):
>
> For now, can you add the line `Console.OutputEncoding = Encoding.GetEncoding(1252); ` to your code before writing out your custom log messages?

Ok, i’ll tell my buddy.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 21, 2019, 7:42am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/6 "2019-08-21T07:42:06Z")

</div>

> [@sa\_thomaslohrum](#):
>
> Why do you think so? Running ‘chcp’ returns 850.

because setting the console output encoding to 1252 produced the correct output

---

<div class="post-metadata">

**Author:** ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)\
**Post date:** [August 21, 2019, 10:09am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/7 "2019-08-21T10:09:57Z")

</div>

Hi Dave,

we changed our tool to set the codepage as suggested. The output works fine now. No need to fix/enhance Continua at this point. Thanks for your help.

Thomas

---

<div class="post-metadata">

**Author:** ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)\
**Post date:** [August 22, 2019, 6:27am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/8 "2019-08-22T06:27:25Z")

</div>

Hi Dave,

as reported the results look fine, when we call our tool by ContinuaCI. Now we have integrated the tool to FinalBuilder as well. Now there’s the opposite effect. Umlaute are broken. Looks like we actually need the enhancement you suggested, to have both tools run correctly.

Thomas

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [August 22, 2019, 7:04am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/9 "2019-08-22T07:04:58Z")

</div>

Hi Thomas,

We’re looking into this and will possibly make some changes next week.

---

<div class="post-metadata">

**Author:** ![sa\_thomaslohrum](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@sa\_thomaslohrum](https://www.finalbuilder.com/forums/u/sa_thomaslohrum)\
**Post date:** [August 22, 2019, 10:01am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/10 "2019-08-22T10:01:02Z")

</div>

Hi Dave,

we changed our tool to support configuration of it. The default is not to change the codepage, which will give correct results when using FinalBuilder. When using Continua we pass an argument to assign the requested codepage, which works fine for us.

Thomas

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [September 9, 2019, 7:30am UTC](https://www.finalbuilder.com/forums/t/german-umlaute-not-supported-using-log-messages/6552/11 "2019-09-09T07:30:05Z")

</div>

We have added action settings and agent properties to control the process encoding in version [1.9.1.336](https://www.finalbuilder.com/downloads/continuaci/continua-ci-version-history-v191)
