Colin,
Well, the translators might not offer a web service interface, but you
should be able to mimic going through a browser with an
HttpWebRequest/HttpWebResponse class. You just need to look at the traffic
that is sent on a request (use something like Fiddler to see what is sent)
and then replicate that. On return, you can parse the response to get the
translated result.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> thanks, but the hard part isnt geting the data from the .ini file,
> as I create that anyway, but accessing a web translater from within c#.
[quoted text clipped - 39 lines]
>>>
>>> Colin =^.^=
colin - 29 Feb 2008 18:31 GMT
yeah thanks, thats what I was thinking I could do as a last resort,
I was looking for examples of doing automated translations but so
much of it is to do with translating the computer language eg java<->c#.
it might not be too dificult but ive not used the httweb* classes yet,
but il give fiddler a look ...
Colin =^.^=
> Colin,
>
[quoted text clipped - 48 lines]
>>>>
>>>> Colin =^.^=
colin - 29 Feb 2008 20:56 GMT
thanks, ive managed to get it working exept for the urlencoding,
the string "prokletého podzemí" gets converted to proklet%E9ho+podzem%ED
looking in fiddler,
but when I use System.Web.HttpUtility.UrlEncode(string) it converts it to
proklet%c3%a9ho+podzem%c3%ad
wich isnt right, im not sure what I need to use, ive tried a few
alternatives such as encoding optional parameters,
but only makes it worse, any ideas ?
(apart from doing the conversion myself ofc lol)
Colin =^.^=
> Colin,
>
[quoted text clipped - 4 lines]
> is sent) and then replicate that. On return, you can parse the response
> to get the translated result.
colin - 29 Feb 2008 21:04 GMT
ah its ok I found a few examples of using it and seems the
System.Text.Encoding doesnt contain the entry I need.
System.Web.HttpUtility.UrlEncode(textIn,
System.Text.Encoding.GetEncoding("Windows-1252"));
using this it works now :)
Colin =^.^=
> thanks, ive managed to get it working exept for the urlencoding,
> the string "prokletého podzemí" gets converted to proklet%E9ho+podzem%ED
[quoted text clipped - 16 lines]
>> is sent) and then replicate that. On return, you can parse the response
>> to get the translated result.