473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Globalization: Non-English characters

Hi,

I am trying to display Cyrillic characters on my ASP.NET page. While doing
that on a local server provided by VS.NET - everything looks fine. But when
I publish the site to my ISP host - all the characters are out of whack.
When I saved my ASPX file with encoding (UTF-8, codepage 65001) - Cyrillic
characters look ok on the host, but only those that are static within HTML
code of ASPX file itself or those entered in a TextBox. Anything assigned in
code behind still scrambled. I tried to play around with Session.CodePage
and Response.Charset as well as <globalizationsetting in Web.config - to
no avail. Any help is appreciated - how to display both static and
dynamically assigned non-English Characters on an ASP.NET page (and
undependably of the IIS's settings)

Thanks!

Yuriy.
Aug 9 '06 #1
2 3100
I did this, and theres no error in the page view:

just copy/past the hole code to a new aspx file

<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs)
Label2.Text = "?"
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Test Page</title>
</head>
<body>
<form id="form1" runat="server">
<br />
Static:
<asp:Label ID="Label1" runat="server"
Font-Bold="True">?</asp:Label><br />
<br />
Dynamic:
<asp:Label ID="Label2" runat="server" Font-Bold="True"></asp:Label>
</form>
</body>
</html>

--

Bruno Alexandre
"a Portuguese in Københav, Danmark"

"Yuriy Galanter" <yu**@galanter.netescreveu na mensagem
news:uB**************@TK2MSFTNGP02.phx.gbl...
Hi,

I am trying to display Cyrillic characters on my ASP.NET page. While doing
that on a local server provided by VS.NET - everything looks fine. But
when I publish the site to my ISP host - all the characters are out of
whack. When I saved my ASPX file with encoding (UTF-8, codepage 65001) -
Cyrillic characters look ok on the host, but only those that are static
within HTML code of ASPX file itself or those entered in a TextBox.
Anything assigned in code behind still scrambled. I tried to play around
with Session.CodePage and Response.Charset as well as <globalization>
setting in Web.config - to no avail. Any help is appreciated - how to
display both static and dynamically assigned non-English Characters on an
ASP.NET page (and undependably of the IIS's settings)

Thanks!

Yuriy.

Aug 9 '06 #2
Thus wrote Yuriy,
Hi,

I am trying to display Cyrillic characters on my ASP.NET page. While
doing that on a local server provided by VS.NET - everything looks
fine. But when I publish the site to my ISP host - all the characters
are out of whack. When I saved my ASPX file with encoding (UTF-8,
codepage 65001) - Cyrillic characters look ok on the host, but only
those that are static within HTML code of ASPX file itself or those
entered in a TextBox. Anything assigned in code behind still
scrambled.
If you're losing characters that are hardcoded in source files (C#, VB.NET),
the language compiler isn't using the correct character encoding when compiling
the source file. Thus, these characters are dropped at compile time. The
easiest way to fix that is to save all source files as UTF-8 with BOM (codepage
65001) as well.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Aug 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dejan Vesic | last post by:
I found nasty "documentation" bug; ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemglobalizationcultureinfoclasstopic.htm claims that proper culture info name for Serbian (Cyrillic) - Serbia...
3
by: Xavier MT | last post by:
Hi, I have a site that has some text in spanish and it doesn't display well, for example with a ñ it displays some weird boxes, can anyone help me or point me to some help
0
by: FM | last post by:
Hi, I use the following code to set the current culture. If Not IsNothing(Session("language")) Then System.Threading.Thread.CurrentThread.CurrentCulture = New...
11
by: Cor Ligthert | last post by:
Hello everybody, Jay and Herfried are telling me every time when I use CDate that using the datetime.parseexact is always the best way to do String to datetime conversions. They don't tell why...
0
by: Jack Russell | last post by:
I am looking at supporting several languages. While Globalization using resx files seems wonderful producing those resx files seems a bit complex using Microsoft's methods. certainly I would not...
1
by: Mark | last post by:
Assume you have a simple HTML form that submits its form results to a .aspx page. The receiving .aspx page processes the values sent by the form. If the form data contains an accented character...
2
by: jason | last post by:
DOTNET 2.0 VS 2005. My client is saying August 13,2006.. julian date should equal 225. Here's what I'm doing: <%@ Import Namespace="system.globalization" %> <script language="VB"...
1
by: =?Utf-8?B?S3Jpc2huYQ==?= | last post by:
Hi, I am krishna in India.I developed Asp.net application the default culture settings is <globalization culture="en-US" uiCulture="en-US"/>.I need change globalization settings for UK.How to...
2
by: Terry Olsen | last post by:
I'm a bit confused on how to make my app work in all cultures, particularly with parsing the date out of a string. I read dates from different web sites. The formats I've run into include...
0
by: Sparkiee | last post by:
Hi, A lil bit of help required from you guys, I am trying to make a windows service that will also focus on globalization, the problem i am facing is when i am trying to put globalization code in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.