From 13103e739e348d5643ada8120ea7e63782c02341 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Tue, 8 Nov 2022 17:43:02 +0000 Subject: [PATCH] Enable UTF-8 to see EURO currency symbol --- docs/errata/improvements.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/errata/improvements.md b/docs/errata/improvements.md index 9155fc4..deacb3c 100644 --- a/docs/errata/improvements.md +++ b/docs/errata/improvements.md @@ -4,11 +4,17 @@ If you have suggestions for improvements, then please [raise an issue in this re - [Improvements](#improvements) - [Print Book](#print-book) + - [Page 153 - Writing a function that returns a value](#page-153---writing-a-function-that-returns-a-value) - [Bonus Content](#bonus-content) # Print Book -None so far. +## Page 153 - Writing a function that returns a value + +At the end of this section there is a note box that explains that we could use the `C` format code to format the output as currency. If you are running on a computer in a culture that uses Euros then to show the Euro currency symbol you must enable UTF-8 encoding. Add the following statement before doing any writing to the console: +```cs +Console.OutputEncoding = System.Text.Encoding.UTF8; +``` # Bonus Content