|
@@ -42,7 +42,7 @@ if __name__ == '__main__':
|
42
|
42
|
for fname in files:
|
43
|
43
|
filepath = subdir + os.sep + fname
|
44
|
44
|
if filepath.endswith('.go'):
|
45
|
|
- content = open(filepath, 'r').read()
|
|
45
|
+ content = open(filepath, 'r', encoding='UTF-8').read()
|
46
|
46
|
|
47
|
47
|
matches = re.findall(r'\.t\("((?:[^"]|\\")+)"\)', content)
|
48
|
48
|
for match in matches:
|
|
@@ -64,7 +64,7 @@ if __name__ == '__main__':
|
64
|
64
|
for fname in files:
|
65
|
65
|
filepath = subdir + os.sep + fname
|
66
|
66
|
if fname == 'help.go':
|
67
|
|
- content = open(filepath, 'r').read()
|
|
67
|
+ content = open(filepath, 'r', encoding='UTF-8').read()
|
68
|
68
|
|
69
|
69
|
matches = re.findall(r'\`([^\`]+)\`', content)
|
70
|
70
|
for match in matches:
|
|
@@ -83,7 +83,7 @@ if __name__ == '__main__':
|
83
|
83
|
for fname in files:
|
84
|
84
|
filepath = subdir + os.sep + fname
|
85
|
85
|
if fname == 'nickserv.go':
|
86
|
|
- content = open(filepath, 'r').read()
|
|
86
|
+ content = open(filepath, 'r', encoding='UTF-8').read()
|
87
|
87
|
|
88
|
88
|
matches = re.findall(r'\`([^\`]+)\`', content)
|
89
|
89
|
for match in matches:
|