https://github.com/wattyven/holo-rename
Renames folder and file names that were erroneously encoded by Windows using CP437 back to CP932
https://github.com/wattyven/holo-rename
cp932 directories hololive membership translation vtubers windows youtube
Last synced: 3 months ago
JSON representation
Renames folder and file names that were erroneously encoded by Windows using CP437 back to CP932
- Host: GitHub
- URL: https://github.com/wattyven/holo-rename
- Owner: wattyven
- Created: 2024-02-03T20:08:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-03T20:22:15.000Z (over 1 year ago)
- Last Synced: 2025-01-21T02:08:11.322Z (5 months ago)
- Topics: cp932, directories, hololive, membership, translation, vtubers, windows, youtube
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Holo-Rename
Renames folder and file names that were erroneously encoded by Windows using CP437 back to CP932You may have noticed that some members-only content, especially zip archives, have broken subfolder and file names such as `ò╟Äå` (meant to be `壁紙`) and `2îÄâüâôâoü[â{âCâX.wav` (meant to be `2月メンバーボイス.wav`); this is because the archives were originally compressed on a machine with a Japanese Windows installation, where by default Windows encodes characters using [Code Page 932](https://en.wikipedia.org/wiki/Code_page_932_(Microsoft_Windows)). However, trying to access it on a machine with a different regional version of Windows, such as a North American machine that by default uses [Code Page 437](https://en.wikipedia.org/wiki/Code_page_437), will interpret the characters incorrectly and thus spit out the aforementioned gibberish strings.
This is a short program that will help rename all the files and subfolders within a specified directory back into Japanese.
## To use:
Requirements: Python3 installation on your machine
Open up the program in a text editor of your choice and make sure the directory is correctly set.
Additionally, make sure that the `wrong_encoding` variable is correctly set for your machine; I've preset its value as `CP437`. `correct_encoding` has already been preset to `CP932`.
Finally, run it! From the directory the program is in, in a terminal window simply run `py holorename.py`
Enjoy your Hololive membership content, now once again back within legible directories!