Central european letters in ASP.NET project

  • Thread starter Thread starter Matija Brnetic
  • Start date Start date
M

Matija Brnetic

I am having problems with displaying central european letter(croatian) in my
ASP.NET project, how can i fix that ?
thnx
 
Have you tried setting it to use unicode?
Here's more info on the subject:
http://msdn.microsoft.com/library/d...en-us/cpguide/html/cpconencodingbasetypes.asp

Also, you might adjust the Globalization section of your web.config.
Try changing it to something more like this:

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
<globalization
fileEncoding="iso-8859-1"
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
/>
</system.web>
</configuration>
 
The CultureInfo class...
Google: "cultureinfo"+"asp.net"

But first start with this...
Google: "localization"+"asp.net"

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
 
Steve said:
Have you tried setting it to use unicode?
Here's more info on the subject:
http://msdn.microsoft.com/library/d...en-us/cpguide/html/cpconencodingbasetypes.asp

Also, you might adjust the Globalization section of your web.config.
Try changing it to something more like this:

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
<globalization
fileEncoding="iso-8859-1"
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
/>
</system.web>
</configuration>

ISO-8859-1 doesn't seem right, since it contains Western European
characters. I guess it's either ISO-8859-2 or -3.

But since ASP.NET uses UTF-8 out-of-the-box, there should not be a problem
at all displaying such characters...

Cheers,
 
Back
Top