Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I convert char* to wchar_t* (or ASCII to Unicode)?

ASCII convert Unicode
0
Posted

How do I convert char* to wchar_t* (or ASCII to Unicode)?

0

Here’s a function I wrote, but it can be improved if you don’t like it: //after calling this function make sure to free() the result when done wchar_t* ASCIIToUnicode(const char *ascii, const int length ) { //first it would be best to discover where the ‘\0’ is located int i; for(i=0;i

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.