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 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 -...
|
by: |
last post by:
How knows this?
Is it allowed using encoded diacritics, e.g. ö é 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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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:...
|
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...
|
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
|
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,...
| |
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,...
|
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 ...
|
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...
| |