DATA BEING SAVED AS CHINESE - NON ENGLISH - PLEASE HELP

genetrader

Client
Регистрация
31.03.2011
Сообщения
26
Благодарностей
0
Баллы
1
I have a scraper that worked previously and now is saving data as what appears to be Chinese.

I am running a series starting with a GET REQUEST then all REGEX... the data, when I debug it in step by step, is displayed properly on the screen but is saving the file incorrectly...??

Any ideas on how to fix this? Another scraper script is working fine and saving fine - its only this one.

The encoding on the GET request is standard utf8 and the as i said the data is being brought in correctly, its just not writing correctly to the file.

Thanks,

Gene
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
What encoding has output file?
Is it created by ZP or manually?
 

genetrader

Client
Регистрация
31.03.2011
Сообщения
26
Благодарностей
0
Баллы
1
What encoding has output file?
Is it created by ZP or manually?
I created a blank txt file that zp writes to.

Previously it didn't have this problem. Additionally, other scripts using same write file command work fine.

Thanks for any advice you can give me. I changed file names but that didn't fix it...
 

genetrader

Client
Регистрация
31.03.2011
Сообщения
26
Благодарностей
0
Баллы
1
How do I check how files encoded?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113

genetrader

Client
Регистрация
31.03.2011
Сообщения
26
Благодарностей
0
Баллы
1
It appears to be a bug.... when I unchecked append to file and forced It to write a new result to the file every loop the results were in English. When I rechecked the append to file box it started saving in English again.

Very weird...
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113
Send a sample project to support email please
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)