RE: Errors rendering an html page
- From: v-thsun@xxxxxxxxxxxxxxxxxxxx (Thomas Sun [MSFT])
- Date: Fri, 04 Sep 2009 02:04:17 GMT
Hi Manuel,
Thanks for your response.
Since you are specifying the string in code behind class, you can use
UTF8Encoding Class to convert the string. For more information, see #
http://msdn.microsoft.com/en-us/library/system.text.utf8encoding.aspx
Yes, you can send me a simplified package that can repro the error on your
machine. My email is v-thsun@xxxxxxxxxxxxxx
I look forward to hearing from you.
--
Best Regards,
Thomas Sun
Microsoft Online Partner Support
--------------------
NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149you
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Hi,
I've tried to add the globalization requestEncoding in the web.config but
the behaviour is the same.
It happens only embedding a particular html page.
Can I send it to you via email ?
Thank you very much
Manuel
"Thomas Sun [MSFT]" wrote:
Hi,
From your description, I understand that when you request your website
whenget the invalid characters on page, but the character shows correctly
not,you request another website on internet. If I have misunderstood you,
please feel free to let me know.
Did you specify the character set or the encoding for your website? If
withoutplease set Unicode encoding in your ASP.NET website. You can try to use
UTF-8 encoding, which allows you to create multilingual Web content
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notifhaving to change the encoding based on the target language.
For ASP.NET website, we can specify it in your web.config:
===========================
<globalization requestEncoding=" UTF-8 " responseEncoding=" UTF-8 " />
===========================
For more information about globalization Element, please see#
http://msdn.microsoft.com/en-us/library/hy4kkhe0.aspx
I look forward to receiving your test results.
--
Best Regards,
Thomas Sun
Microsoft Online Partner Support
==================================================
Get notification to my posts through email? Please refer to
opposedications.
With newsgroups, MSDN subscribers enjoy unlimited, free support as
Complexto the limited number of phone-based technical support incidents.
rights.issues or server-down situations are not recommended for the newsgroups.
Issues of this nature are best handled working with a Microsoft Support
Engineer using one of your phone-based incidents.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
microsoft.public.dotnet.framework.aspnet:91675
--------------------
Thread-Topic: Errors rendering an html page
thread-index: AcosbESzKEcKMTXuRhO5zpc4bjfH2A==
X-WBNR-Posting-Host: 88.149.213.76
From: =?Utf-8?B?TWFudWVs?= <Manuel@xxxxxxxxxxxxxxxx>
Subject: Errors rendering an html page
Date: Thu, 3 Sep 2009 00:58:05 -0700
Lines: 19
Message-ID: <DB59A849-5AD4-46B7-BDD7-80A0CFE4B624@xxxxxxxxxxxxx>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: TK2MSFTNGHUB02.phx.gbl
Xref: TK2MSFTNGHUB02.phx.gbl
myNNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Hi,
When I load an html page (greek language) inside a span id="DivHtml"
usingwebsite stops working correctly or the inner html page is rendered
works.invalid chars. When I load other html pages (english or italian) it
The "greek" html page is rendered correctly if opened outside theapplication
Thank you very much
Manuel
Code Example:
DivHtml.InnerHtml = s.ToString();
(s is a stringbuilder containing the html)
<asp:Panel runat="server" ID="PanelHtml" BorderStyle="Groove"
ScrollBars="Vertical" Width="100%" >
<span id="DivHtml" runat="server"></span>
</asp:Panel>
.
- Follow-Ups:
- RE: Errors rendering an html page
- From: Manuel
- RE: Errors rendering an html page
- References:
- Errors rendering an html page
- From: Manuel
- RE: Errors rendering an html page
- From: Thomas Sun [MSFT]
- RE: Errors rendering an html page
- From: Manuel
- Errors rendering an html page
- Prev by Date: Re: general question about try/catch
- Next by Date: unsorting a gridview (original order)
- Previous by thread: RE: Errors rendering an html page
- Next by thread: RE: Errors rendering an html page
- Index(es):
Relevant Pages
|