By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,667 Members | 2,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,667 IT Pros & Developers. It's quick & easy.

Strange encoding behaviour

P: n/a
Good Morning,
I've the following problem :

I want to translate some page of my site using babelfish translator of
To avoid manual job I want to deliver a c# script that produce this

I've putted this page on my site at the url

<p align="center">Economy</p>

If I try to translate this using altavista, the result is directly
available at
the url
and it's working OK, the translation of Economy in French is …conomie
, the problem is in the first letter of …conomie
, the … is not well recognized instead by the following my c# script

<%@ Page Language="c#" debug="true" trace="true"
<%@ import Namespace="System" %>
<%@ import Namespace="System.IO" %>
<%@ import Namespace="System.Net" %>
<script runat="server">
void Page_Load(Object Src, EventArgs E )
String sAddress =
" & %2FindexTest.aspx"
WebRequest req = WebRequest.Create(sAddress);
WebResponse result = req.GetResponse();
Stream ReceiveStream = result.GetResponseStream();
StreamReader reader = new StreamReader(ReceiveStream, Encoding.UTF8
String sHtmlTradotto = reader.ReadToEnd();
Trace.Write("sHtmlTradotto", sHtmlTradotto);
whose result is available at the url

and basically shows that the … of …conomie is blanked.

How can I solve the problem and finally obtain this translation ??

I think the problem is not in the code because if I use it for this
other address string

String sAddress =
"" ;
Can you help me ???
Many thanks in any case ...

Engineer Antonio D'Ottavio
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.