SFML을 사용하여 C++로 게임을 만들 때 프랑스어 문자를 지원하는 글꼴을 발견했습니다. 그러나 프로그램에서 다른 언어를 지원할 수 있도록 파일의 모든 텍스트를 읽었지만 오류없이 텍스트를 다양한 문자열로 추출하는 방법을 모르겠습니다.C에서 문자를 넓히는 방법
using namespace std;
using namespace sf;
void SettingsW :: initialize()
{
// using normal characters it reads the files correctly
wifstream settTextFile;
settTextFile.open(pageTextSource);
wstring temp;
getline(settTextFile, temp);
pageTitle.setFont(pageFont);
pageTitle.setString(temp);
getline(settTextFile, temp, L' ');
languageTitle.setFont(pageFont);
languageTitle.setString(temp);
//here is the problem
char g=' ';
ios::widen(g);
getline(settTextFile, temp, ' '));
// I want to use get line with this delimiter and when I use the L the error goes away
//but it doesn't display properly: é is displayed as ã
}