Use UTF-8 instead of ANSI

This commit is contained in:
Chuck Walbourn 2018-10-24 18:03:48 -07:00
parent 45ebdc46c5
commit 3a73844dde
3 changed files with 3 additions and 3 deletions

View File

@ -1795,7 +1795,7 @@ HRESULT DirectX::CreateDDSTextureFromFileEx(ID3D11Device* d3dDevice,
if (texture || textureView)
{
CHAR strFileA[MAX_PATH];
int result = WideCharToMultiByte(CP_ACP,
int result = WideCharToMultiByte(CP_UTF8,
WC_NO_BEST_FIT_CHARS,
fileName,
-1,

View File

@ -1542,7 +1542,7 @@ HRESULT DirectX::LoadDDSTextureFromFileEx(
if (texture)
{
CHAR strFileA[MAX_PATH];
int result = WideCharToMultiByte(CP_ACP,
int result = WideCharToMultiByte(CP_UTF8,
WC_NO_BEST_FIT_CHARS,
fileName,
-1,

View File

@ -894,7 +894,7 @@ HRESULT DirectX::CreateWICTextureFromFileEx(ID3D11Device* d3dDevice,
if (texture || textureView)
{
char strFileA[MAX_PATH];
int result = WideCharToMultiByte(CP_ACP,
int result = WideCharToMultiByte(CP_UTF8,
WC_NO_BEST_FIT_CHARS,
fileName,
-1,