In my word file, most of the words are correct but I get invalid stuff like:
zoÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ , zoÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌogamy , zimmisÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
I get a list of words like I'm supposed to but some words are faulty and at the end there is a quirk.
And in the end (zwitterionic is the last word) I get 'zwitterioniczonuroid' (zonuroid is already there above) and then for some reason it starts writing words after zonuroid till zogamete and in the end it writes zoÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
What should I do? I have absolutely no clue in this stuff.. Can C++ read UTF-8? But I want to eventually store it in char because the rest of the program is in char itself.
But what explains that it continues to write to the file after finishing writing all the words? And that it starts writing from almost the end but little far from the end that is the word zonuroid and then writes only until zogamete from there. That couldn't be because of encoding right? Should I change the while loop? Maybe a for-loop that iterates the number equivalent to number of words.
And also all characters in that page are latin characters right? So why is it an issue with encoding?
Thomas click ctrl+f and search for zwitter which is the last word. The program hasn't missed the last 7 words but apparently continues to write after it.
Well that is what happens for me.
If it did miss the last 7 words, why would it miss the last 7 words?
Maybe ask Google about downloading UTF-8 file from the internet.
I can't read UTF-8 in C++ and then convert it to char? How would I download UTF-8 file from the internet using C++ program? I'll try googling too.
latin characters have the same ascii code in UTF 8 right? But the webpage only has latin characters.. this is confusing..
Only have ever used C++ that too just started recently.
Any article suggestions for including small bits of C# in C++?
-> Why don't you just download the file manually ?
I'm making a game where the computer guesses the user's word. The computer refers a textfile for the words. In the case that this textfile has been deleted or altered by the user, I want the program to be able to automatically repair itself by downloading the text. And also, on first run that's how the program gets the textfile, by downloading it.
This way I can share just one piece of code with anybody instead of having to worry about them not properly including the textfile.