I want to convert Wide char arrays (russian,turkey,switzerland,japanese,chinese simplified] to unsigned character array in VC++.
I've tried using WideCharToMultiByte and wcstombs_s but both doesn't work. Anyone know the conversion? Thank you very much.

Recommended Answers

All 3 Replies

You shouldn't have any problem using the WidCharToMultiByte function to do this conversion. Post your nonworking code to provide details of the problem.

The conversion will fail on languages that require more than one byte to represent a character such as many Chinese and Japanese glyphs

Here's a MS MVP link that demonstrates how to use WideChartoMultiByte for translations.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.