[thelist] ASP.NET Character Encoding
VOLKAN ÖZÇELİK
volkan.ozcelik at gmail.com
Sat Oct 15 15:42:30 CDT 2005
Generally localization issues are hard to solve, cuz they are
combinations of several components and are mostly
platform/machine/region specific.
My guess; the issue is to do with your web.config file as well as aspx
page encoding atttribute and charset meta tags.
Here is the configuration I use:
web.config:
<configuration>
<system.web>
<globalization requestEncoding="iso-8859-9"
responseEncoding="iso-8859-9" fileEncoding="iso-8859-9"
culture="tr-TR"
uiCulture="tr-TR" />
</system.web>
</configuration>
And my aspx files look like something like:
default.aspx:
<%@ Page codePage="28599"%>
...
header.ascx:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="TR">
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
...
One more note: All my files are iso-8859-9 (i.e. windows-1254 --
Turkish) encoded. Saving them in UTF-8 made situation even worse for
my case (but it may help you, who knows :) )
I have several findings on the encoding isuue as well, they may be useful:
[1] http://www.volkanozcelik.com/volkanozcelik/blog/2005/09/yet-another-encoding-problem.html
[2] http://www.volkanozcelik.com/volkanozcelik/blog/2005/09/more-on-encoding.html
[3] http://www.volkanozcelik.com/volkanozcelik/blog/2005/10/encoding-solved.html
You may need to browse MSDN, rtfm etc. etc.
Encoding is really a pain in the rear. I wish you good luck. Hope
you'll fix it soon.
HTH,
--
Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/volkanozcelik/blog/
+> My projects/studies/trials/errors : http://www.sarmal.com/
2005/10/15, Zeljko Dakic <mlist at dakic.com>:
> I would suspect that this have something with document type. What I
> would try to open in VS.Net and check the properties of page for example
> and see if there is something to set.
>
> Zeljko
>
> Chris at globet.com wrote:
>
> >I have two files, test.asp and test.aspx. The content is as follows:
> >
> ><html>
> > <head>
> > <title>Character Encoding Test</title>
> > <meta http-equiv="Content-Type" content="text/html;" charset="windows-1253" />
> > </head>
> >
> > <body>
> > ΠΡΟΣΟΧΗ: Δεν έχετε εισάγει το E-mail
> > </body>
> ></html>
> >
> >The ASP file renders in the browser as the correct Greek characters, but the ASP.NET file renders as incorrect characters. Is this something I can address programatically, rather than changing any .NET configuration files? I have found quite a bit of information about .NET and character encoding, but most of it is going over my head at the moment.
> >
> >
> >
>
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list