minimaxir / facebook-page-post-scraper

Data scraper for Facebook Pages, and also code accompanying the blog post How to Scrape Data From Facebook Page Posts for Statistical Analysis
2.12k stars 662 forks source link

Broken character with some language(vi) #52

Open tomcangbk opened 7 years ago

tomcangbk commented 7 years ago

I try to use this amazing script with some facebook fanpage it work very good. But have a problem in write out the data. For example all Vietnamese character like this:

Có khi còn không biết luôn ấy chứ :v

have any one got this issue for language with extenal character out of alphabet? And what way to fix it?

minimaxir commented 7 years ago

Similar to #51.

Are you using Python 2 or 3?

PhanDuc commented 7 years ago

@tomcangbk, Try to encode with utf-8-sig and use Python 3 for better encode, decode

iamrajeshchauhan commented 6 years ago

Hi @minimaxir & @PhanDuc

I have tried using Python 2 and 3 both file having the same content. Is that some special thing to add to script?