After several iteration in loop of my print function without problem, I face to this error I can't figure out: UnicodeEncodeError: 'charmap' codec can't encode character '\x93' in position 0: character maps to <undefined>
the routine is (gh is for debugging purpose):
gh = j+' -> '+str(' '.join(e))+"\n"
prt_tit_gen(dir_conf+ct , gh , 'a')
where
def prt_tit_gen(d,h,m):
file1 = open(d, m)
file1.writelines(h)
file1.close()
and
e = [
zip:GY1 1WW,
sector:Financial Services,
longBusinessSummary:Eurocastle Investment Limited is a publicly traded closed-ended investment company that focuses on investing in performing and nonperforming loans and other real estate related assets primarily in Italy. The Company is Euro denominated and is listed on Euronext Amsterdam under the symbol ÂECTÂ. Eurocastle is managed by an affiliate of Fortress Investment Group LLC, a leading global investment manager. For more information regarding Eurocastle Investment Limited and to be added to our email distribution list, please visit www.eurocastleinv.com.,
city:Saint Peter Port,
country:Guernsey,
.....
......
......
regularMarketPrice:8.3,
preMarketPrice:None,
logo_url:https://logo.clearbit.com/eurocastleinv.com
]