Skip to content

CpConverter

Bankn8II©$A edited this page Jan 29, 2025 · 1 revision

Welcome to the CpConverter wiki!

https://github.com/barionleg/CpConverter/releases/tag/v0.1.7

image

otherwise for .txt & .csv files with Phyton script on notepad+++ https://stackoverf[Welcome to the CpConverter wiki! ](https://github.com/barionleg/CpConverter/wiki/)

https://github.com/barionleg/CpConverter/releases/tag/v0.1.7

image

otherwise for .txt & .csv files with Phyton script on notepad+++ https://stackoverflow.com/questions/35526466/notepad-convert-to-utf-8-multiple-files

Go to Notepad++ -> Plugins -> Plugins Admin.

Find and install Python Script plugin.

Create new python script with Plugins -> Python Script -> New script.

Insert this code into your script:

import os;
import sys;
filePathSrc="C:\\Users\\YourUsername\\Desktop\\txtFolder"
for root, dirs, files in os.walk(filePathSrc):
    for fn in files:
      if fn[-4:] == '.txt' or fn[-4:] == '.csv':
        notepad.open(root + "\\" + fn)
        console.write(root + "\\" + fn + "\r\n")
        notepad.runMenuCommand("Encoding", "Convert to UTF-8")
        notepad.save()
        notepad.close()

Replace C:\Users\YourUsername\Desktop\txtFolder with path to your Windows folder where your files are.

Script works with .txt and .csv files and ignores all other files in folder.

or for other file formats see git: https://gist.github.com/barionleg/2bad0d65217456b1d885d17bc2b3ed7e

and change .py pluging by this way ...

right now I save millions and in future billions of habitants at Physic Chemie wordiginal enad dialect Русский ღРубЛиЯ POCCИЯ & uKPAHИЯ s.c. Украйна, SERBIA and other my HÅTOE©lub or нÅтО©Лuб ჼათესლავები ჩქიმი бу ₽AbLO ES©°BÅR

ICABÅRlow.com/questions/35526466/notepad-convert-to-utf-8-multiple-files

Go to Notepad++ -> Plugins -> Plugins Admin.

Find and install Python Script plugin.

Create new python script with Plugins -> Python Script -> New script.

Insert this code into your script:

import os;
import sys;
filePathSrc="C:\\Users\\YourUsername\\Desktop\\txtFolder"
for root, dirs, files in os.walk(filePathSrc):
    for fn in files:
      if fn[-4:] == '.txt' or fn[-4:] == '.csv':
        notepad.open(root + "\\" + fn)
        console.write(root + "\\" + fn + "\r\n")
        notepad.runMenuCommand("Encoding", "Convert to UTF-8")
        notepad.save()
        notepad.close()

Replace C:\Users\YourUsername\Desktop\txtFolder with path to your Windows folder where your files are.

Script works with .txt and .csv files and ignores all other files in folder.

or for other file formats see git: https://gist.github.com/barionleg/2bad0d65217456b1d885d17bc2b3ed7e

and change .py pluging by this way ...

right now I save millions and in future billions && trillions of habitants at Physic Chemie wordiginal enad dialect Русский ღРубЛиЯ POCCИЯ & uKPAHИЯ s.c. Украйна, SERBIA and other my HÅTOE©lub or нÅтО©Лuб ჼათესლავები ჩქიმი бу ₽AbLO ES©°BÅR on all Planets, Galaxys, SolarSystems, moons, etc ...

636 files converted, lets see a result:

ICABÅR

Clone this wiki locally