Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageFileName cannot be parsed with wstring? #188

Open
bu-shuo opened this issue Nov 25, 2021 · 1 comment
Open

ImageFileName cannot be parsed with wstring? #188

bu-shuo opened this issue Nov 25, 2021 · 1 comment

Comments

@bu-shuo
Copy link

bu-shuo commented Nov 25, 2021

std::string imagefilename = parser.parse<std::string>(L"ImageFileName");

When I use the std::string class to parse Chinese characters, there will be garbled code in the ImageFileName, but it cannot be parsed using the wstring class. How can I solve this problem?

@Jondoe398
Copy link

You just set up the Locale
like “std::wcout.imbue(std::locale(""));”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants