Characters non English

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=

    #1

    Characters non English

    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

    <globalizatio n fileEncoding="i so-8859-1" requestEncoding ="iso-8859-1"
    responseEncodin g="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 ???


    --


    http://www.setbb.com/putainformatica...opic.php?p=843


  • Anthony Jones

    #2
    Re: Characters non English

    "Alhambra Eidos Kiquenet" <AlhambraEidosK iquenet@discuss ions.microsoft. com>
    wrote in message news:8E9714F0-1281-4883-87B1-69F967CE5C05@mi crosoft.com...
    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
    >
    <globalizatio n fileEncoding="i so-8859-1" requestEncoding ="iso-8859-1"
    responseEncodin g="iso-8859-1" />
    >
    >

    How about simply setting requestEncoding and responseEncodin g 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.

    --
    Anthony Jones - MVP ASP/ASP.NET


    Comment

    • =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=

      #3
      Re: Characters non English

      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.

      --


      http://www.setbb.com/putainformatica...opic.php?p=843




      "Anthony Jones" wrote:
      "Alhambra Eidos Kiquenet" <AlhambraEidosK iquenet@discuss ions.microsoft. com>
      wrote in message news:8E9714F0-1281-4883-87B1-69F967CE5C05@mi crosoft.com...
      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

      <globalizatio n fileEncoding="i so-8859-1" requestEncoding ="iso-8859-1"
      responseEncodin g="iso-8859-1" />
      >
      >
      How about simply setting requestEncoding and responseEncodin g 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.
      >
      --
      Anthony Jones - MVP ASP/ASP.NET
      >
      >
      >

      Comment

      • Anthony Jones

        #4
        Re: Characters non English

        "Alhambra Eidos Kiquenet" <AlhambraEidosK iquenet@discuss ions.microsoft. com>
        wrote in message news:4F8A6F1E-677E-4351-A482-2B40654C0F08@mi crosoft.com...
        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 ... ResponseEncodin g="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.


        --
        Anthony Jones - MVP ASP/ASP.NET


        Comment

        Working...