Hưng Nguyễn
Hưng Nguyễn

Reputation: 57

Convert Character Between UTF-8 to ANSI (windows 1252) on VSCode?

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).

Current Version VSCode Current Setting for ANSI (Windows 1252)

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. Entered UTF8 Character

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

Answers (0)

Related Questions