J Jochen Kalmbach [MVP] Mar 14, 2007 #2 Hi Joachim! How do I convert from unicode to ascii string in C++/CLI? Click to expand... int main() { array<System::Byte> ^ascii = System::Text::Encoding::ASCII->GetBytes("Hello World"); } Greetings Jochen
Hi Joachim! How do I convert from unicode to ascii string in C++/CLI? Click to expand... int main() { array<System::Byte> ^ascii = System::Text::Encoding::ASCII->GetBytes("Hello World"); } Greetings Jochen
B Ben Voigt Mar 14, 2007 #3 Jochen Kalmbach said: Hi Joachim! int main() { array<System::Byte> ^ascii = System::Text::Encoding::ASCII->GetBytes("Hello World"); } Click to expand... While I have no doubt that Encoding::ASCII works, it seems awfully inefficient compared to just calling WideCharToMultibyte.
Jochen Kalmbach said: Hi Joachim! int main() { array<System::Byte> ^ascii = System::Text::Encoding::ASCII->GetBytes("Hello World"); } Click to expand... While I have no doubt that Encoding::ASCII works, it seems awfully inefficient compared to just calling WideCharToMultibyte.