The character I would like to print is 'ə', using its unicode value '\u0259' because there is no ASCII 32 bits value for this character.
Attempting to print this code returns a warning then prints a question mark ('?').
I know this could be done easily in Python but I wish to use C because it is the one language I'm learning at school and the one language I'll be evaluated in this year.
What I would like to do is being able to print this character in cmd using c code, or any unicode character for that matter. Is there maybe some kind of library I can install to get UTF8 characters?
#include <stdio.h>
#include <stdlib.h>
void main (void)
{
char myChar = '\u0259'; // Unicode value for "ə"
printf("%c", myChar);
}
Compilation :
unicode.c
unicode.c(6): warning C4566: character represented by universal-character-name '\u0259' cannot be represented in the current code page (1252)
Microsoft (R) Incremental Linker Version 14.33.31630.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:unicode.exe
unicode.obj
C:\FILES\code\c\z>unicode
?