473,511 Members | 17,017 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

aspx display romanian diacritics

I'm trying to display a text from a database, text that contains
Romanian diacritics (aîst) in a aspx page. The text has been
inserted in the database using a asp application with a HTML editor
with this setting: content-type="text/html; charset=iso-8859-2"

I have failed to do this. I've tried using all the possible settings
that I know: setting content-type or charset in web.config ->
globalization, from IIS -> HTTP Headers, from @page
responseEncoding=".., from C# code, using Response.ContentType or
Response.AddHeader or <META> using only one setting at a time or even
combining 2-3 settings..
The only combination that did worked, it was: setting <globalization
responseEncoding="unicode"> and in the same time, in IIS-HTTP Headers:
content-type: ="text/html; charset=iso-8859-2".
The problem is, that in this case, although the text is displayed
correctly (with diacritics) when I try to view the Page Source the text

has a space between every character, and a new empty line between every

two lines. Another problem would be that I would like to change this
settings dynamically, to match my text encoding (I want to use the same

page for different languages) In this case, the setting from the IIS ->

HTTP Headers would not help.
I have even tried to create a empty aspx page with some text with
diacritics from my keyboard, not from the database, but I failed to
display them correctly also.
Can anyone help? Thanks

Mar 23 '06 #1
1 2283
Thus wrote george,
I'm trying to display a text from a database, text that contains
Romanian diacritics (aîst) in a aspx page. The text has been inserted
in the database using a asp application with a HTML editor with this
setting: content-type="text/html; charset=iso-8859-2"
Is that the real encoding used by the ASP application? The Meta tag will
be ignored if the HTTP Content-Type header has a charset attribute.
I have failed to do this. I've tried using all the possible settings
that I know: setting content-type or charset in web.config ->
globalization, from IIS -> HTTP Headers, from @page
responseEncoding=".., from C# code, using Response.ContentType or
Response.AddHeader or <META> using only one setting at a time or even
combining 2-3 settings..

The only combination that did worked, it was: setting <globalization
responseEncoding="unicode"> and in the same time, in IIS-HTTP Headers:
content-type: ="text/html; charset=iso-8859-2".
The problem is, that in this case, although the text is displayed
correctly (with diacritics) when I try to view the Page Source the
text
has a space between every character, and a new empty line between
every
Neither IE nor Firefox handle UTF-16 correctly in source view. The first
byte of each two byte sequence is 0x00 and usually displayed as blank, whereas
the second byte matches the characters' code for 8 bit ISO Latin and is displayed
correctly.
two lines. Another problem would be that I would like to change this
settings dynamically, to match my text encoding (I want to use the
same

page for different languages) In this case, the setting from the IIS
->

HTTP Headers would not help.
8 bit encodings like ISO Latin 1, 2, ..., 15 won't work for arbitrary languages/cultures.
You need Unicode.
I have even tried to create a empty aspx page with some text with
diacritics from my keyboard, not from the database, but I failed to
display them correctly also.


You need make sure that the original ASP web page and your ASP.NET application
use the same encoding.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Mar 23 '06 #2

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

Similar topics

1
1791
by: James | last post by:
I have an application that I have sold to a few institutions and one installation in particular is giving me a real headache. Its a PHP application that draws data from either Oracle or MySQL -...
1
2307
by: | last post by:
How knows this? Is it allowed using encoded diacritics, e.g. &ouml; &eacute; in an XML-file? When I open such XML-file with IE or Mozilla, they both say it's an error, but it seems its not...
1
1531
by: Samuel Lee | last post by:
My friend has a newly installed Windows 2003 Server Web Edition. The IIS and ..NET Framework will be installed by default. He went to the Microsoft.NET config folder and changed the username from...
1
4615
by: Robert | last post by:
Display html pages within an aspx page I would like to display HTML pages within an aspx page.An example might be: I have an aspx page with a menu on the left side and by clicking on one of the...
2
1995
by: WJ | last post by:
I have three ASPX pages: 1. "WebForm1.aspx" is interactive, responsible for calling a web site (https://www.payMe.com) with $$$. It is working fine. 2. "WebForm2.aspx" is non-interactive, a...
0
1121
by: george.miscalencu | last post by:
I'm trying to display a text from a database, text that contains Romanian diacritics (aîst) in a aspx page. The text has been inserted in the database using a asp application with a HTML editor...
1
2505
by: =?Utf-8?B?THluZGE=?= | last post by:
In my web application, I am using two different CSS based on media. In my Print CSS, I can suppress button, header and ad objects using "Display: None;". However, I need to print an object that...
1
1474
by: =?Utf-8?B?THluZGE=?= | last post by:
In my web app, I have two CSS - one for display and one for print. A small copywrite statement needs to print, but does not display on the ASPX page. The ID of the copywrite statement has DISPLAY:...
3
1619
by: =?Utf-8?B?U2hlcm1hbiBLQg==?= | last post by:
I have an application developed using IIS 5, and the 2.14 version of the .net framework and SQL 2005. When deployed to two different servers, the pages all display properly when using the address...
5
1580
by: hmkaddoura | last post by:
hi.. any one knows how to color Diacritics differently from the text in RichTextBox.. am able to do so in word application but not RichTextBox... Thanks.. Regards, HK
0
7242
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
7355
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,...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.