473,473 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Spanish characters problem

Hi everybody.

I am using streamreader to show spanish .htm page on my website.
Unfortunately those spanish characters that have stresses on top (like: Ó,á,
....) do not show correctly. Is there any way to overcome this problem?
Mar 11 '08 #1
4 2587
If you want .htm files to be governed by ASP.NET's rules,
you need to map the .htm extension to the asp.net isapi dll.

You will also need to configure the globalization settings :

<globalization
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
fileEncoding="iso-8859-1"
/>


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Leon" <Le**@discussions.microsoft.comwrote in message news:B1**********************************@microsof t.com...
Hi everybody.

I am using streamreader to show spanish .htm page on my website.
Unfortunately those spanish characters that have stresses on top (like: Ó,á,
...) do not show correctly. Is there any way to overcome this problem?


Mar 11 '08 #2
Juan. Thanks a lot for your help.
I added globalization section to my web.config. For some reason right now it
shows ? instead of those characters. Do you know what am I still missing?

"Juan T. Llibre" wrote:
If you want .htm files to be governed by ASP.NET's rules,
you need to map the .htm extension to the asp.net isapi dll.

You will also need to configure the globalization settings :

<globalization
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
fileEncoding="iso-8859-1"
/>


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Leon" <Le**@discussions.microsoft.comwrote in message news:B1**********************************@microsof t.com...
Hi everybody.

I am using streamreader to show spanish .htm page on my website.
Unfortunately those spanish characters that have stresses on top (like: Ó,á,
...) do not show correctly. Is there any way to overcome this problem?


Mar 11 '08 #3
re:
!I added globalization section to my web.config. For some reason right now it
!shows ? instead of those characters. Do you know what am I still missing?

Mapping the .htm extension to the ASP.NET isapi ... ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Leon" <Le**@discussions.microsoft.comwrote in message news:C9**********************************@microsof t.com...
Juan. Thanks a lot for your help.
I added globalization section to my web.config. For some reason right now it
shows ? instead of those characters. Do you know what am I still missing?

"Juan T. Llibre" wrote:
>If you want .htm files to be governed by ASP.NET's rules,
you need to map the .htm extension to the asp.net isapi dll.

You will also need to configure the globalization settings :

<globalization
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
fileEncoding="iso-8859-1"
/>


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Leon" <Le**@discussions.microsoft.comwrote in message news:B1**********************************@microsof t.com...
Hi everybody.

I am using streamreader to show spanish .htm page on my website.
Unfortunately those spanish characters that have stresses on top (like: Ó,á,
...) do not show correctly. Is there any way to overcome this problem?




Mar 11 '08 #4
Juan.
Can you prompted me how to do it?
I went to IIS, selected my home application folder, went to properties then
directory configuration.
When I was trying to add new mapping, 'Ok' button is always disabled. I am
not sure what I am doing wrong. BTW I logged in as Administrator to my box.

"Juan T. Llibre" wrote:
re:
!I added globalization section to my web.config. For some reason right now it
!shows ? instead of those characters. Do you know what am I still missing?

Mapping the .htm extension to the ASP.NET isapi ... ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Leon" <Le**@discussions.microsoft.comwrote in message news:C9**********************************@microsof t.com...
Juan. Thanks a lot for your help.
I added globalization section to my web.config. For some reason right now it
shows ? instead of those characters. Do you know what am I still missing?

"Juan T. Llibre" wrote:
If you want .htm files to be governed by ASP.NET's rules,
you need to map the .htm extension to the asp.net isapi dll.

You will also need to configure the globalization settings :

<globalization
requestEncoding="iso-8859-1"
responseEncoding="iso-8859-1"
fileEncoding="iso-8859-1"
/>


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Leon" <Le**@discussions.microsoft.comwrote in message news:B1**********************************@microsof t.com...
Hi everybody.

I am using streamreader to show spanish .htm page on my website.
Unfortunately those spanish characters that have stresses on top (like: Ó,á,
...) do not show correctly. Is there any way to overcome this problem?




Mar 11 '08 #5

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

Similar topics

2
by: poisondart | last post by:
Is there a predefined entity set for Spanish accents? I know that I could just easily make one, except that I intend to do this for other languages in the future, which may have more accents than...
4
by: Paul Y | last post by:
Hi. I am attempting to display some Spanish text on my web site using HTML. However, the Spanish characters, such as the 'N' in Espana are not being displayed correctly. The text in the HTML source...
4
by: Carolina | last post by:
Hi! I have this C# code in a Button_Click event procedure: string FilePath = MapPath("diseño.doc"); Response.ContentType = "Application/msword"; Response.AppendHeader("content-disposition",...
0
by: Garth17 | last post by:
This totally surprised me. I'm using IE 6. I built a really simple test.aspx page that had a javascript block in it like this: <script language=javascript src="spanish.js"></script> Inside...
1
by: Chris Welch | last post by:
I'm having a problem with double encoding on my page which is localized in both English and Spanish. I try to set Image1.AlternateText = "B&Uacute;SCAR", and when the page displays the alt...
3
by: Chip | last post by:
There is surprisingly little information on the various encoding options for reading a text file. I have what seems to be a very basic issue: I'm reading a text file that includes Spanish...
2
by: pramod | last post by:
Hi I am facing the problem while inserting the spanish characters in the DB2 UDB v8.2 database. We are pulling the data from SQL server through informatica and then pushing the same in the DB2...
4
by: norikus | last post by:
C will read a text file and store the Spanish characters (á, é, í, ó, ú, ñ, and ¿) as simple ASCII characters. No problem. C#, though, acts as if it's blind. The text string "bahía" read from a file...
0
by: pziggs | last post by:
I have been working on a page in English, and today began tackling the Spanish version of the site. I'm curious because on the homepage (www.nuestracasa.com/esp/) it displays the spanish language...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
1
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
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...
0
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,...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 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.