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 / February 2008

Tip: Looking for answers? Try searching our database.

Characters non English

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alhambra Eidos Kiquenet - 14 Feb 2008 09:17 GMT
Hi

I have two updatepanels on an asp.net page and when there is a postback from
one updatepanel it changes the non english characters in the other and
displays some crap instead.

Characters non english like áÁñÑnº1ªäÄàÂ

display like

áÁñÑnº1ªäÄà Â

In the web.config file for the project I have the glopalization set to

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

Does anyone have any idea to fix this. I've googled this but have not found
any solution yet

Thanks  in advance

What about it ?? Bug in vs2005 ???
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID
=282229


Signature

http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica/viewtopic.php?p=843
www.trabajobasura.com/solusoft

Anthony Jones - 14 Feb 2008 10:13 GMT
> Hi
>
[quoted text clipped - 12 lines]
> <globalization fileEncoding="iso-8859-1" requestEncoding="iso-8859-1"
> responseEncoding="iso-8859-1" />

How about simply setting requestEncoding and responseEncoding to "UTF-8".
Also check that your files are actually saved as iso-8859-1.  If your files
contain literal text which is 'non-english' consider saving them all as
UTF-8 and changing fileEncoding to "UTF-8" as well.

Signature

Anthony Jones - MVP ASP/ASP.NET

Alhambra Eidos Kiquenet - 14 Feb 2008 10:34 GMT
Hi mister,

by another reason, I cannot change web.config and I have to use ISO-8859-1.

Another solution using iso-8859-1 ?? thanks.

Signature

http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica/viewtopic.php?p=843
www.trabajobasura.com/solusoft

> > Hi
> >
[quoted text clipped - 18 lines]
> contain literal text which is 'non-english' consider saving them all as
> UTF-8 and changing fileEncoding to "UTF-8" as well.
Anthony Jones - 14 Feb 2008 10:56 GMT
> Hi mister,
>
> by another reason, I cannot change web.config and I have to use ISO-8859-1.
>
> Another solution using iso-8859-1 ?? thanks.

The first question that comes to mind is why can't the web.config settings
be changed?  However...

In that case you must make sure that your files are saved as ISO-8859-1 (or
Windows-1252) which they will be if saves as ANSI on a machine using the
1252 codepage.

You can specify at the page level :-

<%@ Page ... ResponseEncoding="UTF-8" %>

Strictly speaking the AJAX post-backs should be specifying the charset of is
content which will override any global RequestEncoding, however I've never
tested that using a Fiddler trace.

Signature

Anthony Jones - MVP ASP/ASP.NET


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.