-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestChardet.py
24 lines (19 loc) · 1.1 KB
/
testChardet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
#-*- coding: utf-8 -*-
#IMPORT STD---------------------------------------------------------------------
import os.path
import shutil
import argparse
from glplib import *
#---------------------------------------------------------------------------------------------------
#---------------------------------------- MAIN -----------------------------------------------------
#---------------------------------------------------------------------------------------------------
def main():
print('amiga1200/gamelist.xml:'+predict_encoding('/mnt/d/dev-python/roms/amiga1200/gamelist.xml'))
print('collections/gamelist.xml:'+predict_encoding('/mnt/d/dev-python/roms/collections/gamelist.xml'))
print('lynx/gamelist.xml:'+predict_encoding('/mnt/d/dev-python/roms/lynx/gamelist.xml'))
print('metal/gamelist.xml:'+predict_encoding('/mnt/d/dev-python/roms/metal/gamelist.xml'))
print('nes/gamelist.xml:'+predict_encoding('/mnt/d/dev-python/roms/nes/gamelist.xml'))
#---------------------------------------------------------------------------------------------------
if __name__ == '__main__':
main()