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. ...
Caerphilly asked 6/6, 2017 at 19:26

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*.
Pteridophyte asked 30/8, 2011 at 15:9

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...
Epigenesis asked 5/12, 2016 at 13:31

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...
Spank asked 6/9, 2012 at 18:4

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.
Anticatalyst asked 28/1, 2011 at 8:19

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...
Poly asked 21/9, 2015 at 12:14

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...
Clipfed asked 27/9, 2014 at 10:43

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

According to some older StackOverflow questions ( Unable to pass std::wstring across DLL , C++ DLL returning pointer to std::list<std::wstring> ) it's not considered safe for a C++ DLL to ret...
Veta asked 17/12, 2013 at 23:44

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...
Jackhammer asked 28/9, 2013 at 19:29

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

While going through the file wchar.h on Mac OS X system, I found that wchar_t equivalent of str functions such as wcscpy, wcscat are poisoned when __cplusplust is not defined and max size of wchar_...
What asked 8/3, 2013 at 4:12

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...
Wad asked 24/11, 2012 at 23:17

3

Solved

I'm developing a tiny Win32 app in C++. I've studied C++ fundamentals long time ago, so now I completely confused because of character strings in C++. There were no WCHAR or TCHAR only char and Str...
Chancechancel asked 13/11, 2012 at 11:48

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...
Sylphid asked 7/8, 2012 at 20:1

3

Solved

I have variable WCHAR sDisplayName[1024]; How can I check if sDisplayName contains the string "example"?
Shawnshawna asked 28/6, 2012 at 20:6

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...
Adlei asked 24/5, 2012 at 5:2

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...
Usherette asked 19/3, 2012 at 12:58

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...
Mannequin asked 11/11, 2011 at 18:7

1

Solved

Convert WCHAR to QString in Qt. Please help me to implement it to complete this convertion.
Solatium asked 7/11, 2011 at 18:5

3

Solved

My C program is pasted below. In bash, the program print "char is ", Ω is not printed. My locale are all en_US.utf8. #include <stdio.h> #include <wchar.h> #include <stdlib.h> in...
Defroster asked 8/10, 2011 at 8:10

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...
Boldface asked 8/6, 2011 at 16:42

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

© 2022 - 2024 — McMap. All rights reserved.