diff --git a/grs/fetch_data.py b/grs/fetch_data.py index 7664671..bd7cc9d 100644 --- a/grs/fetch_data.py +++ b/grs/fetch_data.py @@ -63,7 +63,7 @@ def getRawRows(self, rows=6): @property def getRawRowsName(self): """ 原始檔案的欄位名稱 """ - re = [i.decode('big5') for i in self.__RawRowsName] + re = [i.decode('cp950') for i in self.__RawRowsName] return re def __fetch_data(self, stock_no, nowdatetime=datetime.today()): @@ -102,7 +102,7 @@ def __to_list(self, csv_file): tolist.append(i) if len(tolist): self.__info = (tolist[0][0].split(' ')[1], - tolist[0][0].split(' ')[2].decode('big5')) + tolist[0][0].split(' ')[2].decode('cp950')) self.__RawRowsName = tolist[1] return tolist[2:] else: