Top "Widechar" questions

widechar is a generic name for character sets wider than ASCII

What is a "wide character string" in C language?

I came across this in the book: wscanf(L"%lf", &variable); where the first parameter is of type of …

c string widechar
Why does the Java char primitive take up 2 bytes of memory?

Is there any reason why Java char primitive data type is 2 bytes unlike C which is 1 byte? Thanks

java unicode utf-16 widechar
What's the difference between printf("%s"), printf("%ls"), wprintf("%s"), and wprintf("%ls")?

Consider this sample program: #include <cstdio> #include <cwchar> #include <string> int main() { std::string …

c++ unicode printf widechar
Convert Char into AnsiChar or WideChar (Delphi)

I'm upgrading a very old (10+ years) application to the latest Delphi XE. There are a number of errors I keep …

delphi unicode delphi-xe widechar
Displaying wide chars with printf

I'm trying to understand how does printf work with wide characters (wchar_t). I've made the following code samples : Sample 1 : #…

c encoding printf widechar
WideCharToMultiByte() vs. wcstombs()

What is the difference between WideCharToMultiByte() and wcstombs() When to use which one?

c++ winapi unicode widechar wchar
_T( ) macro changes for UNICODE character data

I have UNICODE application where in we use _T(x) which is defined as follows. #if defined(_UNICODE) #define _T(…

c++ c string gcc widechar
Windows API: ANSI and Wide-Character Strings -- Is it UTF8 or ASCII? UTF-16 or UCS-2 LE?

I'm not quite pro with encodings, but here's what I think I know (though it may be wrong): ASCII is …

winapi unicode ascii widechar multibyte-functions
What is the difference between WideChar and AnsiChar?

I'm upgrading some ancient (from 2003) Delphi code to Delphi Architect XE and I'm running into a few problems. I am …

delphi widechar
C++, WCHAR[] to std::cout and comparision

I need to put WCHAR[] to std::cout ... It is a part of PWLAN_CONNECTION_NOTIFICATION_DATA passed from Native …

c++ winapi wchar-t widechar