473,811 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ 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 2609
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 :

<globalizatio n
requestEncoding ="iso-8859-1"
responseEncodin g="iso-8859-1"
fileEncoding="i so-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**@discussio ns.microsoft.co mwrote in message news:B1******** *************** ***********@mic rosoft.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 :

<globalizatio n
requestEncoding ="iso-8859-1"
responseEncodin g="iso-8859-1"
fileEncoding="i so-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**@discussio ns.microsoft.co mwrote in message news:B1******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co mwrote in message news:C9******** *************** ***********@mic rosoft.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 :

<globalizati on
requestEncoding ="iso-8859-1"
responseEncodin g="iso-8859-1"
fileEncoding="i so-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**@discussio ns.microsoft.co mwrote in message news:B1******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co mwrote in message news:C9******** *************** ***********@mic rosoft.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 :

<globalizatio n
requestEncoding ="iso-8859-1"
responseEncodin g="iso-8859-1"
fileEncoding="i so-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**@discussio ns.microsoft.co mwrote in message news:B1******** *************** ***********@mic rosoft.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
1869
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 Spanish. The closest to what I was expecting was this link: http://www.altheim.com/specs/charents.html ....but the link to the ent file is broken. What is the usual/preferred method that you employ to render special
4
8693
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 is fine, it's just when I view the site using my browser I get the problem. I am using an IE:Mac running Mac OS X. I have used the HTML tag <p lang="es"> for the relevant paragraph as the rest of the site is in English. Any help would be greatly...
4
2469
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", "attachment;filename=" + "diseño.doc"); Response.WriteFile(FilePath); Response.Flush();
0
1316
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 the spanish.js I had 1 line that set a variable to a spanish character. var Test = "á";
1
1679
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 attribute, it is double-encoded as "B&amp;Uacute;SCAR". So I try to run the string through HttpUtility.HtmlDecode first, but AlternateText doesn't encode the Acute-U. The alt attribute is "B`USCAR" Is there a way to short-circuit AlternateText's...
3
5129
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 characters such as "ñ". When I read the file into a string, that character is missing. Encoding seems to be the culprit. File writers SHOULD begin a file with the BOM (Byte Order Mark) to let us know what encoding to read the file with, but most software...
2
7307
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 database. Codepage for DB2 database is UTF-8, which is Unicode. Whenever it is encountering any spanish charater it is giving the following error: SQL0302N The value of a host variable in the execute or open statement is too large for its...
4
3459
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 comes out as "baha" and if I'm testing for spelling errors (I'm a Spanish teacher) it's no help. From what I can find on the Internet, the .NET system appears to render accented characters into more complex structures, but I can't find any examples...
0
1352
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 characters (accented letters and other commonly used spanish characters) correctly, but on a subpage (www.nuestracasa.com/esp/buying-tips.php) it does not. Anyone have thoughts?
0
9728
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10648
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10389
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9205
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6890
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4339
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 we have to send another system
3
3018
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.