Re: RunCommand - WIP (0.0.0.3)
Posted: October 17th, 2013, 2:19 pm
i am having some trouble with OutputFile & OutputType
i try to use wget with Google Translate (i know i just could use WebParser).
the result i get is:
now there's some weird characters there. surprisingly when i put this in a text file, WebParser can read it just fine (default codepage setting probably):
so my thought was why not using OutputFile, and read that file with Webparser. when i use OutputType=Unicode i will get Chinese in in both the output and the output file, as expected.
but when i use OutputType=Ansi, all i get in the output file is:
and WebParser reads:
what i try to use is:
i use wget from the UnxUtils http://unxutils.sourceforge.net/
i try to use wget with Google Translate (i know i just could use WebParser).
the result i get is:
Code: Select all
[[["Übersetzung","translation","",""]],[["noun",["Übersetzung","Übertragung","Entrückung","Wiedergabe"],[["Übersetzung",["translation","transmission","version","gearing"],,0.666143596],["Übertragung",["transmission","transfer","transference","communication","broadcast","translation"],,0.000911881973],["Entrückung",["rapture","translation","ecstasy"],,3.42696658e-05],["Wiedergabe",["playback","reproduction","rendition","rendering","representation","repetition"],,2.78527239e-07]],"translation",1]],"en
Code: Select all
[[["Übersetzung","translation","",""]],[["noun",["Übersetzung","Übertragung","Entrückung","Wiedergabe"],[["Übersetzung",["translation","transmission","version","gearing"],,0.666143596],["Übertragung",["transmission","transfer","transference","communication","broadcast","translation"],,0.000911881973],["Entrückung",["rapture","translation","ecstasy"],,3.42696658e-05],["Wiedergabe",["playback","reproduction","rendition","rendering","representation","repetition"],,2.78527239e-07]],"translation",1]],"en
but when i use OutputType=Ansi, all i get in the output file is:
Code: Select all
[[["Ã
Code: Select all
[[["�
what i try to use is:
Code: Select all
[Command_C1]
Measure=Plugin
Plugin=RunCommand
Program=""#@#Addons\wget\wget.exe""
Parameter=-U "Mozilla/5.0" -qO - "http://translate.google.com/translate_a/t?client=t&text=translation&sl=auto&tl=de"
State=Hide
OnChangeAction=[!UpdateMeter *][!Redraw]
RegExpSubstitute=1
OutputType=Ansi
Outputfile="#@#translation.txt"