VS: Add support for Utf8Enconding when using VS 16.10+

On VS 16.10 Preview 2 or above, generate `UseUtf8Encoding`
instead of `StdOutEncoding=UTF-8` in `.vcxproj` files.

Fixes: #22032
47 jobs for !6238 with gugavaro_22032_Unicode in 45 minutes and 7 seconds (queued for 3 seconds)
latest detached
Status Job ID Name Coverage
  Build
manual #5885063
linux docker build cmake manual
build:centos6-x86_64
manual #5885064
linux-3.17 linux docker build cmake manual
build:fedora34-ninja
manual #5885066
nonconcurrent xcode-12.5 shell macos cmake manual
build:macos-x86_64-makefiles
manual #5885065
nonconcurrent xcode-12.5 shell macos cmake manual
build:macos-x86_64-ninja
passed #5885067
nonconcurrent msvc-19.29-16.10 vs2019 shell windows cmake manual
build:windows-vs2019-x64-ninja

00:10:57

passed #5885059
linux docker build cmake
lint:codespell

00:00:34

passed #5885060
linux docker build cmake
lint:debian10-iwyu

00:02:38

passed #5885062
linux-3.17 linux docker build cmake
lint:fedora34-sphinx

00:05:09

passed #5885061
linux-3.17 linux docker build cmake
lint:fedora34-tidy

00:06:26

 
  Test
created #5885068
x11 linux-3.17 linux docker cmake
test:fedora34-ninja
created #5885070
nonconcurrent xcode-12.5 shell macos cmake
test:macos-x86_64-makefiles
created #5885069
nonconcurrent xcode-12.5 shell macos cmake
test:macos-x86_64-ninja
passed #5885431
msvc-19.29-16.10 nonconcurrent vs2019 shell cmake windows
test:windows-vs2019-x64-ninja

00:16:19

failed #5885403
msvc-19.29-16.10 nonconcurrent vs2019 shell cmake windows
test:windows-vs2019-x64-ninja

00:05:58

failed #5885071
nonconcurrent msvc-19.29-16.10 vs2019 shell windows cmake
test:windows-vs2019-x64-ninja

00:22:48

 
  Test Ext
created #5885074
linux docker cuda-rt cmake
test:cuda10.2-nvidia
created #5885072
linux-3.17 linux docker build cmake
test:debian10-ninja
created #5885073
linux-3.17 linux docker build cmake
test:fedora34-makefiles
created #5885075
linux-3.17 linux docker build cmake
test:fedora34-ninja-multi
created #5885076
concurrent xcode-12.5 shell macos cmake
test:macos-x86_64-xcode
passed #5885077
concurrent msvc-19.29-16.10 vs2019 shell windows cmake
test:windows-vs2019-x64

00:11:22

 
  External
passed cdash

passed ghostflow-check-master

passed ghostflow-check-release

passed ghostflow-stager

passed cdash

passed cdash

passed cdash

passed cdash

passed cdash

passed cdash

passed cdash

passed cdash

passed cdash

passed cdash

passed cdash

passed cdash

failed ghostflow-check-master

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager