Streaming .Htm file to a page

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

    Streaming .Htm file to a page

    Hi Everybody.

    I am streaming Html File.

    Dim sReader = New StreamReader(pc FileName)
    Dim strInnerHtml As String = sReader.ReadToE nd.ToString
    divTemplate.Inn erHtml = strInnerHtml

    For some reason on the page instead of (') - apostrophe it shows symbol
    like this:�

    Does anyone know how to fix it?

    Thanks in advance

  • Mark Fitzpatrick

    #2
    Re: Streaming .Htm file to a page

    Check and make sure it's a real apostrophe. Some programs create those curly
    apostrophies, which come from a font and aren't ASCII values. In this case
    they can sometimes appear as a block, which denotes an unknown binary
    character.

    Hope this helps,
    Mark Fitzpatrick
    Microsoft MVP - Expression

    "Leon" <Leon@discussio ns.microsoft.co mwrote in message
    news:71E51B91-92F7-4C63-88DE-85EC609B42EE@mi crosoft.com...
    Hi Everybody.
    >
    I am streaming Html File.
    >
    Dim sReader = New StreamReader(pc FileName)
    Dim strInnerHtml As String = sReader.ReadToE nd.ToString
    divTemplate.Inn erHtml = strInnerHtml
    >
    For some reason on the page instead of (') - apostrophe it shows symbol
    like this:�
    >
    Does anyone know how to fix it?
    >
    Thanks in advance
    >

    Comment

    • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

      #3
      RE: Streaming .Htm file to a page

      you should xlate it to "


      -- bruce (sqlwork.com)


      "Leon" wrote:
      Hi Everybody.
      >
      I am streaming Html File.
      >
      Dim sReader = New StreamReader(pc FileName)
      Dim strInnerHtml As String = sReader.ReadToE nd.ToString
      divTemplate.Inn erHtml = strInnerHtml
      >
      For some reason on the page instead of (') - apostrophe it shows symbol
      like this:�
      >
      Does anyone know how to fix it?
      >
      Thanks in advance
      >

      Comment

      • =?Utf-8?B?TGVvbg==?=

        #4
        Re: Streaming .Htm file to a page

        Mark, thanks for your reply.

        Actualy sometimes it's a real apostrophe, sometimes it's a spanish stress
        mark.
        Some of our web pages in spanish. What should I do in this case?

        "Mark Fitzpatrick" wrote:
        Check and make sure it's a real apostrophe. Some programs create those curly
        apostrophies, which come from a font and aren't ASCII values. In this case
        they can sometimes appear as a block, which denotes an unknown binary
        character.
        >
        Hope this helps,
        Mark Fitzpatrick
        Microsoft MVP - Expression
        >
        "Leon" <Leon@discussio ns.microsoft.co mwrote in message
        news:71E51B91-92F7-4C63-88DE-85EC609B42EE@mi crosoft.com...
        Hi Everybody.

        I am streaming Html File.

        Dim sReader = New StreamReader(pc FileName)
        Dim strInnerHtml As String = sReader.ReadToE nd.ToString
        divTemplate.Inn erHtml = strInnerHtml

        For some reason on the page instead of (') - apostrophe it shows symbol
        like this:�

        Does anyone know how to fix it?

        Thanks in advance
        >
        >

        Comment

        • =?Utf-8?B?TGVvbg==?=

          #5
          RE: Streaming .Htm file to a page

          Thanks Bruce.

          The problem is that some of our webpages (htm files) in spanish.
          Do you know how to fix this problem?

          "bruce barker" wrote:
          you should xlate it to "
          >
          >
          -- bruce (sqlwork.com)
          >
          >
          "Leon" wrote:
          >
          Hi Everybody.

          I am streaming Html File.

          Dim sReader = New StreamReader(pc FileName)
          Dim strInnerHtml As String = sReader.ReadToE nd.ToString
          divTemplate.Inn erHtml = strInnerHtml

          For some reason on the page instead of (') - apostrophe it shows symbol
          like this:�

          Does anyone know how to fix it?

          Thanks in advance

          Comment

          Working...