Skip to content

Commit

Permalink
Tiny bug about cp950.
Browse files Browse the repository at this point in the history
  • Loading branch information
toomore committed Apr 12, 2012
1 parent c918b44 commit a51bf89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grs/fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a51bf89

Please sign in to comment.