http://scienceoss.com/read-excel-files-from-python/comment-page-1/#comment-1051
From the above link i use this utility to read an xls file.If the xls contains different language characters like chine or hindi.It does not output the exact wordings.Is there a work around for this..
After googling i found this
import xlrd
def upload_xls(dir,file,request):
try:
global msg
global row_num
row_num = []
header_arr = []
global file_path
file_path = dir
#reader = csv.reader(open(file), delimiter='#', quotechar='"')
book = xlrd.open_workbook('dodgy.xls',encoding='cp1252') ##To specify UTF8-encoding
wb.sheet_names()
sh = wb.sheet_by_index(0)
valid_xl_format = 0
invalid_xl_format = 0
except:
print "Error"
But there is an error in the line book = open_workbook('dodgy.xls',encoding='cp1252')
And The error is TypeError: open_workbook() got an unexpected keyword argument 'encoding'