foreign character encoding

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default foreign character encoding

    im working on an ASP.NET app in VB.NET and have problems with foreign
    characters.
    everything works ok, special characters are presented ok onscreen when typed
    in the body of the page, using html encoding or not, i.e.

    &aacute and á both display an a with an acute symbol

    the problem come when is pass foreign characters using parameters and get
    the using Server.Params or Request.QueryString, they simply disappear.

    a call test.aspx?param=áaée

    should show the param string as áaée, but it only shows it as ae.

    both pages are using utf-8 charset, but i also tryied without it, and didnt
    work either...

    also tryied to encode the querystring using Server.HtmlEncode(string) and
    Server.URLEncode(string) before passing it, but nothing...

    my system is configured as any regular us machine, english os, english
    explorer, etc. nothing special there... any hint?


    Harley Guest

  2. Similar Questions and Discussions

    1. Character Encoding
      When attempting to retrieve a Greek RSS feed via mx:HTTPService the characters return in an unreadable state. The following code easily replicates...
    2. Helvetica foreign character problems in Illustrator 10
      This might not be Illustrator's fault but it seems to be the only app affected. On opening artwork containing foreign characters (á, ö, ê etc) in...
    3. Web Service and Swedish Character Encoding
      I am building an XML Web Service, the Client in Delphi 7, the Server in MS ASP NET C# and with a database in SQL 2000. When I send Swedish...
    4. Dreamweaver and character encoding
      Those special characters are actually double-byte characters and so not within the ISO-8859-1 standard. This is incorrect. ISO-8859-1 is an 8-bit...
    5. Ruby Character Encoding
      Hi, In message "Ruby Character Encoding" on 03/07/15, Mark Wilson <mwilson13@cox.net> writes: |I'm interested in any (i.e., arbitrary)...
  3. #2

    Default Re: foreign character encoding

    Have you tried setting it to use unicode?
    Here's more info on the subject:
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconencodingbasetypes.asp[/url]

    Also, have you checked the Globalization section of the web.config?
    Try changing it to something more like this:

    <!-- Web.Config Configuration File -->

    <configuration>
    <system.web>
    <customErrors mode="Off"/>
    <globalization
    fileEncoding="iso-8859-1"
    requestEncoding="iso-8859-1"
    responseEncoding="iso-8859-1"
    />

    </system.web>

    </configuration>

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Harley" <harleyobrien%40hotmail.com> wrote in message
    news:%23szTg6xUDHA.3312@tk2msftngp13.phx.gbl...
    > im working on an ASP.NET app in VB.NET and have problems with foreign
    > characters.
    > everything works ok, special characters are presented ok onscreen when
    typed
    > in the body of the page, using html encoding or not, i.e.
    >
    > &aacute and á both display an a with an acute symbol
    >
    > the problem come when is pass foreign characters using parameters and get
    > the using Server.Params or Request.QueryString, they simply disappear.
    >
    > a call test.aspx?param=&aacute;a&eacute;e
    >
    > should show the param string as áaée, but it only shows it as ae.
    >
    > both pages are using utf-8 charset, but i also tryied without it, and
    didnt
    > work either...
    >
    > also tryied to encode the querystring using Server.HtmlEncode(string) and
    > Server.URLEncode(string) before passing it, but nothing...
    >
    > my system is configured as any regular us machine, english os, english
    > explorer, etc. nothing special there... any hint?
    >
    >

    Steve C. Orr, MCSD Guest

  4. #3

    Default Re: foreign character encoding

    the web.config settings did it.
    thank you!

    "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    news:eXDQv2zUDHA.3312@tk2msftngp13.phx.gbl...
    > Have you tried setting it to use unicode?
    > Here's more info on the subject:
    >
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconencodingbasetypes.asp[/url]
    >
    > Also, have you checked the Globalization section of the web.config?
    > Try changing it to something more like this:
    >
    > <!-- Web.Config Configuration File -->
    >
    > <configuration>
    > <system.web>
    > <customErrors mode="Off"/>
    > <globalization
    > fileEncoding="iso-8859-1"
    > requestEncoding="iso-8859-1"
    > responseEncoding="iso-8859-1"
    > />
    >
    > </system.web>
    >
    > </configuration>
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD
    > [url]http://Steve.Orr.net[/url]
    >
    >
    > "Harley" <harleyobrien%40hotmail.com> wrote in message
    > news:%23szTg6xUDHA.3312@tk2msftngp13.phx.gbl...
    > > im working on an ASP.NET app in VB.NET and have problems with foreign
    > > characters.
    > > everything works ok, special characters are presented ok onscreen when
    > typed
    > > in the body of the page, using html encoding or not, i.e.
    > >
    > > &aacute and á both display an a with an acute symbol
    > >
    > > the problem come when is pass foreign characters using parameters and
    get
    > > the using Server.Params or Request.QueryString, they simply disappear.
    > >
    > > a call test.aspx?param=&aacute;a&eacute;e
    > >
    > > should show the param string as áaée, but it only shows it as ae.
    > >
    > > both pages are using utf-8 charset, but i also tryied without it, and
    > didnt
    > > work either...
    > >
    > > also tryied to encode the querystring using Server.HtmlEncode(string)
    and
    > > Server.URLEncode(string) before passing it, but nothing...
    > >
    > > my system is configured as any regular us machine, english os, english
    > > explorer, etc. nothing special there... any hint?
    > >
    > >
    >
    >

    Harley Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139