Reputation: 57
Does anyone know how to directly convert UTF-8 characters in a file to ANSI (Windows 1252) right on Visual Code without having to use another application?
My problem was that I was using the default Windows1252 setting when opening .txt files (Because my files are encoded in ANSI).
After I enter UTF-8 characters. I want to convert these characters to ANSI encoding (Windows1252). See a photo of the UTF8 characters I entered.
Currently I'm struggling with the Notepad++ application, Copying text from VSCode, then pasting into Notepad++ with UTF-8, then converting to ANSI. And I copied it back to VsCode. This is driving me and a lot of other people crazy.
I am currently using an Extension "Vscode Google Translate" at: Link Marketplace, I highlight the text and then press the shortcut it translates the language. So I hope everyone knows which Extension has the feature to convert UTF-8 to Windows1252. That's really helpful.
I tried to search for the keywords: How to convert UTF-8 to ANSI on VSCode, How to convert UTF-8 to Windows1252 on VSCode, Extension Convert UTF-8 to ANSI VSCode... etc..
But I didn't find any results or answers that I wanted.
So I look forward to everyone's understanding.
Upvotes: 0
Views: 826