Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > UTF-8 in ASCX will not render correctly

Thread Tools

UTF-8 in ASCX will not render correctly

Peter Styk
Posts: n/a
Hello, i believe i've tried everything before posting here. Can anyone help?

In web config i have the following globalization:

<globalization requestEncoding="UTF-8"

My page header says this:
<%@ Page language="c#" Codebehind="WebForm7.aspx.cs" AutoEventWireup="false"
Inherits="project.WebForm7" culture="pl-PL" codePage="65001"%>

I have a blank page, i type the following text

󶼿 ʣӦ.jpg (may not display correctly here)

now i paste the same text into an epty ASCX control and drop it on the new
ASPX page right below the above text.

When code compiles and renders on the page... this is what i get


󶼿 ʣӦ.jpg (may not display correctly here)

?? ??.jpg (may not display correctly here)


Is this a bug? Is there a way around it? I really want to use UTF-8
instead of 1250 but most of my work for the project is in controls
How can i force my ASCX controls to input and output correctly in UTF-8?
I have english version of VS.NET 2003. I tried running this code on
Server2003 both Polish and English. same result

Please at least let me know, is my only option going back to 1250?

Peter Styk

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Substitution control does not work correctly when render method is Peter ASP .Net 0 09-29-2008 04:00 PM
FF preference screens do not render correctly (Linux/KDE) ANC Firefox 1 05-06-2006 07:30 PM
UTF-8 in ASCX will not render correctly Peter Styk ASP .Net Web Controls 0 01-12-2005 01:32 AM
Page.Render do not render complete page Lau Lei Cheong ASP .Net 1 05-15-2004 04:10 AM
datasource of child .ascx not visible to parent .ascx Joe ASP .Net Web Controls 1 02-16-2004 07:27 AM