wchar Questions
2
Solved
Why does the following program
#include <stdio.h>
#include <wchar.h>
int main() {
wprintf(L"Привет, мир!");
}
print "Privet, mir!" on Linux? Specifically, why doe...
Misunderstanding asked 29/12, 2020 at 15:17
3
Solved
I've written a program in C that breaks words down into syllables, segments and letters. It's working well with ASCII characters but I want to make versions that work for the IPA and Arabic too.
...
4
Solved
I want to compare two WCHAR* strings.
How to do it?
P.S.
I would like to ignore case while comparing.
I know you can use strcmpi but it id not working for WCHAR*.
1
Solved
GCC 4.8, 5.1, 6.2 and Clang 3.8.1 on Ubuntu 16.10 with -std=c11, -std=c++11, -std=c++14, and -std=c++17 all exhibit this weird behaviour when using fgetws(buf, (int) bufsize, stdin) after setlocale...
4
Solved
I just don't understand and can't find much info about wchar end.
If it ends with single null byte, how it know it not string end yet, if something like that "009A" represent one of unicode symbol...
5
I would like to convert a char* string to a wchar* string in C.
I have found many answers, but most of them are for C++. Could you help me?
Thanks.
2
Solved
I have made a program in C which both can replace or remove all vowels from a string. In addition I would like it to work for these characters: 'æ', 'ø', 'å'.
I have tried to use strstr(), but I di...
2
Solved
I have documentation where written that username, IP and password must be const char* and when I'm putting varaibles in const char, I'm getting this error message.
This is my code:
#include <c...
2
Solved
Hello! It is confused me for a long time!
Long long ago , there is only ansi version that is atoi .
And now (it is also long long ago ) there is a wide char version .
But why the wide char vers...
Phototonus asked 19/4, 2014 at 6:39
1
Solved
2
I am developing for Windows, I have not found adequate information on how to correctly declare and later on set a unicode string. So far,
wchar_t myString[1024] = L"My Test Unicode String!";
Wha...
2
Solved
I'm a little confused now with the hungarian notation prefixes in WinAPI for CHAR strings and WCHAR strings.
When we use a CHAR string usually such a prefix is used:
CHAR szString[] = "Hello";
W...
Dressel asked 15/4, 2013 at 14:29
2
Solved
1
I have been having trouble working with 3-byte Unicode UTF-8 characters in arrays. When they are in char arrays I get multi-character character constant and implicit constant conversion warnings, b...
3
Solved
3
Solved
I need to convert character pointer to a w_char * in order to use ParseNetworkString(). I've tried finding solutions to this myself, and while I have found one solution, there is one issue which bl...
3
Solved
I have variable WCHAR sDisplayName[1024];
How can I check if sDisplayName contains the string "example"?
1
Like _T() macro in Visual Studio, I defined and used my own _L macro as:
#define _L(x) __L(x)
#define __L(x) L ## x
It works for:
wprintf(_L("abc\n"));
But gets a compilation error for:
wpri...
3
Solved
im developin QT application, and i need to include pure C code. When i compile this code in code::blocks it was successful, maybe one warning, but when i try to compile it in QT creator, i get thes...
1
Solved
I have a mistake in the function for reading the file but I don't know what is wrong. all the symbols are read correctly when the symbol is beyond the ASCII table.
while ((c = fgetwc(file)) ...
Roux asked 18/12, 2011 at 14:14
2
Solved
I am a kind of new for c++ , while working on the windows CE .net compact application
while trying to write hexa datas to a file
CString dataBlock1;
dataBlock1 = "";
CString temp;
for(in...
1
Solved
Convert WCHAR to QString in Qt.
Please help me to implement it to complete this convertion.
3
Solved
2
I am writing a C# library to be used by native C++ application. I am using C++/CLI as the Interoperability mechanisim.
I require to pass a callback function from C++ to C# (using C++/CLI as the in...
1
Solved
I have a Unicode Win32 application that uses 3rd party libraries, some of which provide constants for their version information as #defined (narrow) strings. For instance, libpng has the following:...
Cycad asked 12/7, 2011 at 18:58
1 Next >
© 2022 - 2024 — McMap. All rights reserved.