encoding question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • exBK

    #1

    encoding question

    I have a page where I get the data from DB as a DataSet. Use the
    DataSet.GetXml( ) and load the XML in to a XMLDocument. Then use a XSL
    stylesheet to render the page. In this process I am not able to display the
    special characters such as Pound Symbol as is ... instead it comesout as "£".
    I am not sure where I need to fix this. If I bind the same DataSet to a
    grid, it displays the Pound symbol correctly. Any suggestions are greatly
    appreciated.

  • Jon Skeet [C# MVP]

    #2
    Re: encoding question

    exBK <exBK@discussio ns.microsoft.co m> wrote:[color=blue]
    > I have a page where I get the data from DB as a DataSet. Use the
    > DataSet.GetXml( ) and load the XML in to a XMLDocument. Then use a XSL
    > stylesheet to render the page. In this process I am not able to display the
    > special characters such as Pound Symbol as is ... instead it comesout as "?".
    > I am not sure where I need to fix this. If I bind the same DataSet to a
    > grid, it displays the Pound symbol correctly. Any suggestions are greatly
    > appreciated.[/color]

    See http://www.pobox.com/~skeet/csharp/d...ngunicode.html for my way
    of identifying where this kind of problem lies.

    --
    Jon Skeet - <skeet@pobox.co m>
    http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
    If replying to the group, please do not mail me too

    Comment

    • Kevin Spencer

      #3
      Re: encoding question

      You may find the following reference useful:



      --
      HTH,

      Kevin Spencer
      Microsoft MVP
      ..Net Developer
      A watched clock never boils.

      "exBK" <exBK@discussio ns.microsoft.co m> wrote in message
      news:AA019ABA-BAA3-4759-A9F0-99EA3B6DCACB@mi crosoft.com...[color=blue]
      >I have a page where I get the data from DB as a DataSet. Use the
      > DataSet.GetXml( ) and load the XML in to a XMLDocument. Then use a XSL
      > stylesheet to render the page. In this process I am not able to display
      > the
      > special characters such as Pound Symbol as is ... instead it comesout as
      > "£".
      > I am not sure where I need to fix this. If I bind the same DataSet to a
      > grid, it displays the Pound symbol correctly. Any suggestions are greatly
      > appreciated.
      >[/color]


      Comment

      Working...