I am trying to read a text file containing unicode characters. Here's the input file
yo World 💁👌🎍😍
Unfortunately, when I try to read the file and print it,
- The unicode characters are garbled in the console (windows powershell. the console itself supports these characters as I can echo them)
- The returning array only has 2 items in it for some reason.
This is what I see as output;
yo World 💁👌🎍😍yo World 💁👌🎍😍The size of array : 2
The size of array : 2
y o
I am not sure where I am going wrong and would appreciate any help in fixing my code. I am new to c (used to the usual scripting languages) and simple string handling is blowing my little brain :/