(note that I posted a previous iteration of my question in stack overflow)
Hello there, I am trying to change multiple files from UTF-8 to ANSI in Notepad. My goal is change them to ANSI like my course has specified, so that I can import these files in MySQL.
Specifically, I am wondering how to convert files from UTF-8 to ANSI, as what I have picked up here is that I need to convert, not just change the encoding. Or, I might need to know how to overwrite a file.
So far, I use the "Open as..." option to open a csv file in Notepad, select ANSI encoding, and click Save. When the warning pops up that some of the Unicode characters will be lost in ANSI, I clicked Ok. However, when I go back to the "Save as" page to check if I changed all the files, some have changed back to UTF-8 encoding. My instructor has said that the encoding should change if I overwrite the file...I haven't hit an "Overwrite" option yet, so how will I know if I am overwriting it?
If your solution involves inserting code in the text, please clarify how this text-converting code will not be a part of the code in MySQL, as I am confused about how inserting code in the text file will change the code and the data within once it's in SQL. That's where I'm at in my journey to learn these applications...
I have read about the different encoding types, that they support different characters. The files that won't change encoding do contain non-latin characters. Although the topic of encoding makes sense, I am getting the message from my course that I should be able to save all the files with ANSI encoding, and then import in mysql. I have read here about importing all files as UTF-8 to sql, but it seems like there's a lot I could mess up in my file. At this stage, I would be more confident finding a way to convert the file to ANSI, if possible, and import from there.
I feel like I've dumped a lot of information here, as I have tried a few different approaches to this. Anyone have ideas for what I'm missing here, or a workaround?