Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Spanish characters problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Leon - 11 Mar 2008 17:34 GMT
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?
Juan T. Llibre - 11 Mar 2008 17:48 GMT
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/
======================================
> 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?
Leon - 11 Mar 2008 20:20 GMT
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?

> 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.
[quoted text clipped - 16 lines]
> > Unfortunately those spanish characters that have stresses on top (like: Ó,á,
> > ...) do not show correctly. Is there any way to overcome this problem?
Juan T. Llibre - 11 Mar 2008 22:01 GMT
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/
======================================
> Juan. Thanks a lot for your help.
> I added globalization section to my web.config. For some reason right now it
[quoted text clipped - 20 lines]
>> > Unfortunately those spanish characters that have stresses on top (like: Ó,á,
>> > ...) do not show correctly. Is there any way to overcome this problem?
Leon - 11 Mar 2008 22:29 GMT
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.

> re:
> !> I added globalization section to my web.config. For some reason right now it
[quoted text clipped - 30 lines]
> >> > Unfortunately those spanish characters that have stresses on top (like: Ó,á,
> >> > ...) do not show correctly. Is there any way to overcome this problem?
Juan T. Llibre - 11 Mar 2008 22:46 GMT
re:
!> Can you prompt me how to do it?

Open the IIS Manager, click on your application's name under "Default Web Site",
select "Properties" and then "Configuration".

Click "Add", and paste "drive:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll"
in the "executable" textbox ( substitute the actual boot drive letter for "drive" ).

Then, write ".htm" ( no quotes, but include the dot ) in the "extension" textbox,
and OK your way out of that dialog.

That should do it.

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/
======================================
> Juan.
> Can you prompted me how to do it?
[quoted text clipped - 37 lines]
>> >> > Unfortunately those spanish characters that have stresses on top (like: Ó,á,
>> >> > ...) do not show correctly. Is there any way to overcome this problem?
Leon - 11 Mar 2008 23:34 GMT
Juan. That's exactly what I was doing and for some reason 'Ok' button stays
disabled and I cannot click it. I am not sure what could be the problem?

> re:
> !> Can you prompt me how to do it?
[quoted text clipped - 55 lines]
> >> >> > Unfortunately those spanish characters that have stresses on top (like: Ó,á,
> >> >> > ...) do not show correctly. Is there any way to overcome this problem?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.