Home All Groups Group Topic Archive Search About
Author
29 Aug 2006 12:24 AM
Bill Nguyen
Below is the "Code" portion in MS Frontpage. On the design screen is what I
typed in using Unicode. I need to be able to convert data from one format to
another from within a .NET app

1. Is there any util/addon that can do this?
2. Sample coding to do it on our own

Thanks

Bill
------------------


Code screen:
<body>

<p>B&#7887; phi&#7871;u</p>
<p>Góp ý</p>
<p>&nbsp;</p>
<p>Phi&#7871;u b&#7847;u</p>
<p>K&#7871;t qu&#7843; th&#259;m dò:</p>
<p>T&#7893;ng s&#7889; phi&#7871;u:</p>
<p>Xem k&#7871;t qu&#7843;</p>

</body>

----------------
Design:
B? phi?u
Góp ý



Phi?u b?u

K?t qu? tham dò:

T?ng s? phi?u:

Xem k?t qu?

Author
29 Aug 2006 5:46 AM
Cor Ligthert [MVP]
Bill,

I thought that it was this one.

http://msdn2.microsoft.com/en-us/library/system.web.httputility.htmldecode.aspx

I hope this helps,

Cor


Show quoteHide quote
"Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht
news:%23qlq%23FwyGHA.3440@TK2MSFTNGP06.phx.gbl...
> Below is the "Code" portion in MS Frontpage. On the design screen is what
> I typed in using Unicode. I need to be able to convert data from one
> format to another from within a .NET app
>
> 1. Is there any util/addon that can do this?
> 2. Sample coding to do it on our own
>
> Thanks
>
> Bill
> ------------------
>
>
> Code screen:
> <body>
>
> <p>B&#7887; phi&#7871;u</p>
> <p>Góp ý</p>
> <p>&nbsp;</p>
> <p>Phi&#7871;u b&#7847;u</p>
> <p>K&#7871;t qu&#7843; th&#259;m dò:</p>
> <p>T&#7893;ng s&#7889; phi&#7871;u:</p>
> <p>Xem k&#7871;t qu&#7843;</p>
>
> </body>
>
> ----------------
> Design:
> B? phi?u
> Góp ý
>
>
>
> Phi?u b?u
>
> K?t qu? tham dò:
>
> T?ng s? phi?u:
>
> Xem k?t qu?
>
>
Author
29 Aug 2006 11:22 PM
Bill Nguyen
Cor;
Thanks for your tip.
However, it doesn't work at all trying to use the sample in the link.
Am I using the wrong syntax?

Thanks again

Bill
----------
Imports system

Imports System.Web

Imports System.IO

Imports System.Web.HttpUtility

Imports System.Net

Public Class frmHTMLutil

Private Sub btnHtmlDecode_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnHtmlDecode.Click

Dim s As String = "Phi&#7871;u b&#7847;u"

Dim op As TextWriter

HtmlDecode(s, op)

End Sub

End Class



Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:OWjtK5yyGHA.4548@TK2MSFTNGP05.phx.gbl...
> Bill,
>
> I thought that it was this one.
>
> http://msdn2.microsoft.com/en-us/library/system.web.httputility.htmldecode.aspx
>
> I hope this helps,
>
> Cor
>
>
> "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht
> news:%23qlq%23FwyGHA.3440@TK2MSFTNGP06.phx.gbl...
>> Below is the "Code" portion in MS Frontpage. On the design screen is what
>> I typed in using Unicode. I need to be able to convert data from one
>> format to another from within a .NET app
>>
>> 1. Is there any util/addon that can do this?
>> 2. Sample coding to do it on our own
>>
>> Thanks
>>
>> Bill
>> ------------------
>>
>>
>> Code screen:
>> <body>
>>
>> <p>B&#7887; phi&#7871;u</p>
>> <p>Góp ý</p>
>> <p>&nbsp;</p>
>> <p>Phi&#7871;u b&#7847;u</p>
>> <p>K&#7871;t qu&#7843; th&#259;m dò:</p>
>> <p>T&#7893;ng s&#7889; phi&#7871;u:</p>
>> <p>Xem k&#7871;t qu&#7843;</p>
>>
>> </body>
>>
>> ----------------
>> Design:
>> B? phi?u
>> Góp ý
>>
>>
>>
>> Phi?u b?u
>>
>> K?t qu? tham dò:
>>
>> T?ng s? phi?u:
>>
>> Xem k?t qu?
>>
>>
>
>
Author
30 Aug 2006 5:39 AM
Cor Ligthert [MVP]
Bill,

It works fine for me assuming that it has to be Phiếu bầu which I surely could not have typed by hand.

\\\
Dim s As String = "Phi&#7871;u b&#7847;u"
Dim op As String
op = Web.HttpUtility.HtmlDecode(s)
///

I hope this helps,

Cor

Show quoteHide quote
"Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:%23Lo23H8yGHA.1256@TK2MSFTNGP04.phx.gbl...
> Cor;
> Thanks for your tip.
> However, it doesn't work at all trying to use the sample in the link.
> Am I using the wrong syntax?
>
> Thanks again
>
> Bill
> ----------
> Imports system
>
> Imports System.Web
>
> Imports System.IO
>
> Imports System.Web.HttpUtility
>
> Imports System.Net
>
> Public Class frmHTMLutil
>
> Private Sub btnHtmlDecode_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles btnHtmlDecode.Click
>
> Dim s As String = "Phi&#7871;u b&#7847;u"
>
> Dim op As TextWriter
>
> HtmlDecode(s, op)
>
> End Sub
>
> End Class
>
>
>
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
> news:OWjtK5yyGHA.4548@TK2MSFTNGP05.phx.gbl...
>> Bill,
>>
>> I thought that it was this one.
>>
>> http://msdn2.microsoft.com/en-us/library/system.web.httputility.htmldecode.aspx
>>
>> I hope this helps,
>>
>> Cor
>>
>>
>> "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht
>> news:%23qlq%23FwyGHA.3440@TK2MSFTNGP06.phx.gbl...
>>> Below is the "Code" portion in MS Frontpage. On the design screen is what
>>> I typed in using Unicode. I need to be able to convert data from one
>>> format to another from within a .NET app
>>>
>>> 1. Is there any util/addon that can do this?
>>> 2. Sample coding to do it on our own
>>>
>>> Thanks
>>>
>>> Bill
>>> ------------------
>>>
>>>
>>> Code screen:
>>> <body>
>>>
>>> <p>B&#7887; phi&#7871;u</p>
>>> <p>Góp ý</p>
>>> <p>&nbsp;</p>
>>> <p>Phi&#7871;u b&#7847;u</p>
>>> <p>K&#7871;t qu&#7843; th&#259;m dò:</p>
>>> <p>T&#7893;ng s&#7889; phi&#7871;u:</p>
>>> <p>Xem k&#7871;t qu&#7843;</p>
>>>
>>> </body>
>>>
>>> ----------------
>>> Design:
>>> B? phi?u
>>> Góp ý
>>>
>>>
>>>
>>> Phi?u b?u
>>>
>>> K?t qu? tham dò:
>>>
>>> T?ng s? phi?u:
>>>
>>> Xem k?t qu?
>>>
>>>
>>
>>
>
>
Author
30 Aug 2006 6:43 PM
Bill Nguyen
Dear Cor;

Yes,  "Phiếu bầu " that is :-)

Now instead of a string, can s be a text file instead? Do I have to read the text file into a string before the conversion or httpUtility can read a file?

Thanks a million.

Bill



  "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:%231Wz5Z$yGHA.4044@TK2MSFTNGP04.phx.gbl...
  Bill,

  It works fine for me assuming that it has to be Phiếu bầu which I surely could not have typed by hand.

  \\\
  Dim s As String = "Phi&#7871;u b&#7847;u"
  Dim op As String
  op = Web.HttpUtility.HtmlDecode(s)
  ///

  I hope this helps,

  Cor

Show quoteHide quote
  "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:%23Lo23H8yGHA.1256@TK2MSFTNGP04.phx.gbl...
  > Cor;
  > Thanks for your tip.
  > However, it doesn't work at all trying to use the sample in the link.
  > Am I using the wrong syntax?
  >
  > Thanks again
  >
  > Bill
  > ----------
  > Imports system
  >
  > Imports System.Web
  >
  > Imports System.IO
  >
  > Imports System.Web.HttpUtility
  >
  > Imports System.Net
  >
  > Public Class frmHTMLutil
  >
  > Private Sub btnHtmlDecode_Click(ByVal sender As System.Object, ByVal e As
  > System.EventArgs) Handles btnHtmlDecode.Click
  >
  > Dim s As String = "Phi&#7871;u b&#7847;u"
  >
  > Dim op As TextWriter
  >
  > HtmlDecode(s, op)
  >
  > End Sub
  >
  > End Class
  >
  >
  >
  > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
  > news:OWjtK5yyGHA.4548@TK2MSFTNGP05.phx.gbl...
  >> Bill,
  >>
  >> I thought that it was this one.
  >>
  >> http://msdn2.microsoft.com/en-us/library/system.web.httputility.htmldecode.aspx
  >>
  >> I hope this helps,
  >>
  >> Cor
  >>
  >>
  >> "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht
  >> news:%23qlq%23FwyGHA.3440@TK2MSFTNGP06.phx.gbl...
  >>> Below is the "Code" portion in MS Frontpage. On the design screen is what
  >>> I typed in using Unicode. I need to be able to convert data from one
  >>> format to another from within a .NET app
  >>>
  >>> 1. Is there any util/addon that can do this?
  >>> 2. Sample coding to do it on our own
  >>>
  >>> Thanks
  >>>
  >>> Bill
  >>> ------------------
  >>>
  >>>
  >>> Code screen:
  >>> <body>
  >>>
  >>> <p>B&#7887; phi&#7871;u</p>
  >>> <p>Góp ý</p>
  >>> <p>&nbsp;</p>
  >>> <p>Phi&#7871;u b&#7847;u</p>
  >>> <p>K&#7871;t qu&#7843; th&#259;m dò:</p>
  >>> <p>T&#7893;ng s&#7889; phi&#7871;u:</p>
  >>> <p>Xem k&#7871;t qu&#7843;</p>
  >>>
  >>> </body>
  >>>
  >>> ----------------
  >>> Design:
  >>> B? phi?u
  >>> Góp ý
  >>>
  >>>
  >>>
  >>> Phi?u b?u
  >>>
  >>> K?t qu? tham dò:
  >>>
  >>> T?ng s? phi?u:
  >>>
  >>> Xem k?t qu?
  >>>
  >>>
  >>
  >>
  >
  >
Author
31 Aug 2006 5:42 AM
Cor Ligthert [MVP]
Bill,

I would not even try if there are more possibillties, I just would do that now I know how it goes.
The time I win with looking for that I can probably never win again by using it in another way.

This is about nanoseconds, if it is a big file, than the sending over Internet will for sure still years take so much time that nobody will see it.

:-)

Cor
  "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:ep7OvQGzGHA.5048@TK2MSFTNGP03.phx.gbl...
  Dear Cor;

  Yes,  "Phiếu bầu " that is :-)

  Now instead of a string, can s be a text file instead? Do I have to read the text file into a string before the conversion or httpUtility can read a file?

  Thanks a million.

  Bill



    "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:%231Wz5Z$yGHA.4044@TK2MSFTNGP04.phx.gbl...
    Bill,

    It works fine for me assuming that it has to be Phiếu bầu which I surely could not have typed by hand.

    \\\
    Dim s As String = "Phi&#7871;u b&#7847;u"
    Dim op As String
    op = Web.HttpUtility.HtmlDecode(s)
    ///

    I hope this helps,

    Cor

Show quoteHide quote
    "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:%23Lo23H8yGHA.1256@TK2MSFTNGP04.phx.gbl...
    > Cor;
    > Thanks for your tip.
    > However, it doesn't work at all trying to use the sample in the link.
    > Am I using the wrong syntax?
    >
    > Thanks again
    >
    > Bill
    > ----------
    > Imports system
    >
    > Imports System.Web
    >
    > Imports System.IO
    >
    > Imports System.Web.HttpUtility
    >
    > Imports System.Net
    >
    > Public Class frmHTMLutil
    >
    > Private Sub btnHtmlDecode_Click(ByVal sender As System.Object, ByVal e As
    > System.EventArgs) Handles btnHtmlDecode.Click
    >
    > Dim s As String = "Phi&#7871;u b&#7847;u"
    >
    > Dim op As TextWriter
    >
    > HtmlDecode(s, op)
    >
    > End Sub
    >
    > End Class
    >
    >
    >
    > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
    > news:OWjtK5yyGHA.4548@TK2MSFTNGP05.phx.gbl...
    >> Bill,
    >>
    >> I thought that it was this one.
    >>
    >> http://msdn2.microsoft.com/en-us/library/system.web.httputility.htmldecode.aspx
    >>
    >> I hope this helps,
    >>
    >> Cor
    >>
    >>
    >> "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht
    >> news:%23qlq%23FwyGHA.3440@TK2MSFTNGP06.phx.gbl...
    >>> Below is the "Code" portion in MS Frontpage. On the design screen is what
    >>> I typed in using Unicode. I need to be able to convert data from one
    >>> format to another from within a .NET app
    >>>
    >>> 1. Is there any util/addon that can do this?
    >>> 2. Sample coding to do it on our own
    >>>
    >>> Thanks
    >>>
    >>> Bill
    >>> ------------------
    >>>
    >>>
    >>> Code screen:
    >>> <body>
    >>>
    >>> <p>B&#7887; phi&#7871;u</p>
    >>> <p>Góp ý</p>
    >>> <p>&nbsp;</p>
    >>> <p>Phi&#7871;u b&#7847;u</p>
    >>> <p>K&#7871;t qu&#7843; th&#259;m dò:</p>
    >>> <p>T&#7893;ng s&#7889; phi&#7871;u:</p>
    >>> <p>Xem k&#7871;t qu&#7843;</p>
    >>>
    >>> </body>
    >>>
    >>> ----------------
    >>> Design:
    >>> B? phi?u
    >>> Góp ý
    >>>
    >>>
    >>>
    >>> Phi?u b?u
    >>>
    >>> K?t qu? tham dò:
    >>>
    >>> T?ng s? phi?u:
    >>>
    >>> Xem k?t qu?
    >>>
    >>>
    >>
    >>
    >
    >
Author
31 Aug 2006 5:45 PM
Bill Nguyen
Dear Cor;
I figured it out.
Still have to read into a string then decode.
I ran into a different problem though.

The encoded text was read back to it's original format perfectly using MS Frontpage.
However, still having a lot of garbage using HtmlDecode.

I'm thinking of reading the text  into bytes, then decode from bytes back to its original format.

Any algorithm that can do this properly?

Thanks

Bill
  "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:OmkKgAMzGHA.4580@TK2MSFTNGP05.phx.gbl...
  Bill,

  I would not even try if there are more possibillties, I just would do that now I know how it goes.
  The time I win with looking for that I can probably never win again by using it in another way.

  This is about nanoseconds, if it is a big file, than the sending over Internet will for sure still years take so much time that nobody will see it.

  :-)

  Cor
    "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:ep7OvQGzGHA.5048@TK2MSFTNGP03.phx.gbl...
    Dear Cor;

    Yes,  "Phiếu bầu " that is :-)

    Now instead of a string, can s be a text file instead? Do I have to read the text file into a string before the conversion or httpUtility can read a file?

    Thanks a million.

    Bill



      "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:%231Wz5Z$yGHA.4044@TK2MSFTNGP04.phx.gbl...
      Bill,

      It works fine for me assuming that it has to be Phiếu bầu which I surely could not have typed by hand.

      \\\
      Dim s As String = "Phi&#7871;u b&#7847;u"
      Dim op As String
      op = Web.HttpUtility.HtmlDecode(s)
      ///

      I hope this helps,

      Cor

Show quoteHide quote
      "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:%23Lo23H8yGHA.1256@TK2MSFTNGP04.phx.gbl...
      > Cor;
      > Thanks for your tip.
      > However, it doesn't work at all trying to use the sample in the link.
      > Am I using the wrong syntax?
      >
      > Thanks again
      >
      > Bill
      > ----------
      > Imports system
      >
      > Imports System.Web
      >
      > Imports System.IO
      >
      > Imports System.Web.HttpUtility
      >
      > Imports System.Net
      >
      > Public Class frmHTMLutil
      >
      > Private Sub btnHtmlDecode_Click(ByVal sender As System.Object, ByVal e As
      > System.EventArgs) Handles btnHtmlDecode.Click
      >
      > Dim s As String = "Phi&#7871;u b&#7847;u"
      >
      > Dim op As TextWriter
      >
      > HtmlDecode(s, op)
      >
      > End Sub
      >
      > End Class
      >
      >
      >
      > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
      > news:OWjtK5yyGHA.4548@TK2MSFTNGP05.phx.gbl...
      >> Bill,
      >>
      >> I thought that it was this one.
      >>
      >> http://msdn2.microsoft.com/en-us/library/system.web.httputility.htmldecode.aspx
      >>
      >> I hope this helps,
      >>
      >> Cor
      >>
      >>
      >> "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht
      >> news:%23qlq%23FwyGHA.3440@TK2MSFTNGP06.phx.gbl...
      >>> Below is the "Code" portion in MS Frontpage. On the design screen is what
      >>> I typed in using Unicode. I need to be able to convert data from one
      >>> format to another from within a .NET app
      >>>
      >>> 1. Is there any util/addon that can do this?
      >>> 2. Sample coding to do it on our own
      >>>
      >>> Thanks
      >>>
      >>> Bill
      >>> ------------------
      >>>
      >>>
      >>> Code screen:
      >>> <body>
      >>>
      >>> <p>B&#7887; phi&#7871;u</p>
      >>> <p>Góp ý</p>
      >>> <p>&nbsp;</p>
      >>> <p>Phi&#7871;u b&#7847;u</p>
      >>> <p>K&#7871;t qu&#7843; th&#259;m dò:</p>
      >>> <p>T&#7893;ng s&#7889; phi&#7871;u:</p>
      >>> <p>Xem k&#7871;t qu&#7843;</p>
      >>>
      >>> </body>
      >>>
      >>> ----------------
      >>> Design:
      >>> B? phi?u
      >>> Góp ý
      >>>
      >>>
      >>>
      >>> Phi?u b?u
      >>>
      >>> K?t qu? tham dò:
      >>>
      >>> T?ng s? phi?u:
      >>>
      >>> Xem k?t qu?
      >>>
      >>>
      >>
      >>
      >
      >
Author
1 Sep 2006 5:21 PM
Cor Ligthert [MVP]
Bill,

A unicode is two bytes, so converting it to that will in my idea not help you.

I really did only that HTMLDecode.

What I can think about that my code table in my system is more confirm those characters.
Although the characters are surely not used in my language.

http://www.vb-tips.com/dbPages.aspx?ID=cca7e08a-9580-42b3-beff-76c81839e6c9

Cor
  "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:%23KBQCVSzGHA.4044@TK2MSFTNGP04.phx.gbl...
  Dear Cor;
  I figured it out.
  Still have to read into a string then decode.
  I ran into a different problem though.

  The encoded text was read back to it's original format perfectly using MS Frontpage.
  However, still having a lot of garbage using HtmlDecode.

  I'm thinking of reading the text  into bytes, then decode from bytes back to its original format.

  Any algorithm that can do this properly?

  Thanks

  Bill
    "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:OmkKgAMzGHA.4580@TK2MSFTNGP05.phx.gbl...
    Bill,

    I would not even try if there are more possibillties, I just would do that now I know how it goes.
    The time I win with looking for that I can probably never win again by using it in another way.

    This is about nanoseconds, if it is a big file, than the sending over Internet will for sure still years take so much time that nobody will see it.

    :-)

    Cor
      "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:ep7OvQGzGHA.5048@TK2MSFTNGP03.phx.gbl...
      Dear Cor;

      Yes,  "Phiếu bầu " that is :-)

      Now instead of a string, can s be a text file instead? Do I have to read the text file into a string before the conversion or httpUtility can read a file?

      Thanks a million.

      Bill



        "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:%231Wz5Z$yGHA.4044@TK2MSFTNGP04.phx.gbl...
        Bill,

        It works fine for me assuming that it has to be Phiếu bầu which I surely could not have typed by hand.

        \\\
        Dim s As String = "Phi&#7871;u b&#7847;u"
        Dim op As String
        op = Web.HttpUtility.HtmlDecode(s)
        ///

        I hope this helps,

        Cor

Show quoteHide quote
        "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:%23Lo23H8yGHA.1256@TK2MSFTNGP04.phx.gbl...
        > Cor;
        > Thanks for your tip.
        > However, it doesn't work at all trying to use the sample in the link.
        > Am I using the wrong syntax?
        >
        > Thanks again
        >
        > Bill
        > ----------
        > Imports system
        >
        > Imports System.Web
        >
        > Imports System.IO
        >
        > Imports System.Web.HttpUtility
        >
        > Imports System.Net
        >
        > Public Class frmHTMLutil
        >
        > Private Sub btnHtmlDecode_Click(ByVal sender As System.Object, ByVal e As
        > System.EventArgs) Handles btnHtmlDecode.Click
        >
        > Dim s As String = "Phi&#7871;u b&#7847;u"
        >
        > Dim op As TextWriter
        >
        > HtmlDecode(s, op)
        >
        > End Sub
        >
        > End Class
        >
        >
        >
        > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
        > news:OWjtK5yyGHA.4548@TK2MSFTNGP05.phx.gbl...
        >> Bill,
        >>
        >> I thought that it was this one.
        >>
        >> http://msdn2.microsoft.com/en-us/library/system.web.httputility.htmldecode.aspx
        >>
        >> I hope this helps,
        >>
        >> Cor
        >>
        >>
        >> "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht
        >> news:%23qlq%23FwyGHA.3440@TK2MSFTNGP06.phx.gbl...
        >>> Below is the "Code" portion in MS Frontpage. On the design screen is what
        >>> I typed in using Unicode. I need to be able to convert data from one
        >>> format to another from within a .NET app
        >>>
        >>> 1. Is there any util/addon that can do this?
        >>> 2. Sample coding to do it on our own
        >>>
        >>> Thanks
        >>>
        >>> Bill
        >>> ------------------
        >>>
        >>>
        >>> Code screen:
        >>> <body>
        >>>
        >>> <p>B&#7887; phi&#7871;u</p>
        >>> <p>Góp ý</p>
        >>> <p>&nbsp;</p>
        >>> <p>Phi&#7871;u b&#7847;u</p>
        >>> <p>K&#7871;t qu&#7843; th&#259;m dò:</p>
        >>> <p>T&#7893;ng s&#7889; phi&#7871;u:</p>
        >>> <p>Xem k&#7871;t qu&#7843;</p>
        >>>
        >>> </body>
        >>>
        >>> ----------------
        >>> Design:
        >>> B? phi?u
        >>> Góp ý
        >>>
        >>>
        >>>
        >>> Phi?u b?u
        >>>
        >>> K?t qu? tham dò:
        >>>
        >>> T?ng s? phi?u:
        >>>
        >>> Xem k?t qu?
        >>>
        >>>
        >>
        >>
        >
        >
Author
16 Sep 2006 5:54 PM
Bill nguyen
Cor;
Thanks

I will look into it!

Bill
  "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:uyqoVrezGHA.744@TK2MSFTNGP05.phx.gbl...
  Bill,

  A unicode is two bytes, so converting it to that will in my idea not help you.

  I really did only that HTMLDecode.

  What I can think about that my code table in my system is more confirm those characters.
  Although the characters are surely not used in my language.

  http://www.vb-tips.com/dbPages.aspx?ID=cca7e08a-9580-42b3-beff-76c81839e6c9

  Cor
    "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:%23KBQCVSzGHA.4044@TK2MSFTNGP04.phx.gbl...
    Dear Cor;
    I figured it out.
    Still have to read into a string then decode.
    I ran into a different problem though.

    The encoded text was read back to it's original format perfectly using MS Frontpage.
    However, still having a lot of garbage using HtmlDecode.

    I'm thinking of reading the text  into bytes, then decode from bytes back to its original format.

    Any algorithm that can do this properly?

    Thanks

    Bill
      "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:OmkKgAMzGHA.4580@TK2MSFTNGP05.phx.gbl...
      Bill,

      I would not even try if there are more possibillties, I just would do that now I know how it goes.
      The time I win with looking for that I can probably never win again by using it in another way.

      This is about nanoseconds, if it is a big file, than the sending over Internet will for sure still years take so much time that nobody will see it.

      :-)

      Cor
        "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:ep7OvQGzGHA.5048@TK2MSFTNGP03.phx.gbl...
        Dear Cor;

        Yes,  "Phiếu bầu " that is :-)

        Now instead of a string, can s be a text file instead? Do I have to read the text file into a string before the conversion or httpUtility can read a file?

        Thanks a million.

        Bill



          "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:%231Wz5Z$yGHA.4044@TK2MSFTNGP04.phx.gbl...
          Bill,

          It works fine for me assuming that it has to be Phiếu bầu which I surely could not have typed by hand.

          \\\
          Dim s As String = "Phi&#7871;u b&#7847;u"
          Dim op As String
          op = Web.HttpUtility.HtmlDecode(s)
          ///

          I hope this helps,

          Cor

Show quoteHide quote
          "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht news:%23Lo23H8yGHA.1256@TK2MSFTNGP04.phx.gbl...
          > Cor;
          > Thanks for your tip.
          > However, it doesn't work at all trying to use the sample in the link.
          > Am I using the wrong syntax?
          >
          > Thanks again
          >
          > Bill
          > ----------
          > Imports system
          >
          > Imports System.Web
          >
          > Imports System.IO
          >
          > Imports System.Web.HttpUtility
          >
          > Imports System.Net
          >
          > Public Class frmHTMLutil
          >
          > Private Sub btnHtmlDecode_Click(ByVal sender As System.Object, ByVal e As
          > System.EventArgs) Handles btnHtmlDecode.Click
          >
          > Dim s As String = "Phi&#7871;u b&#7847;u"
          >
          > Dim op As TextWriter
          >
          > HtmlDecode(s, op)
          >
          > End Sub
          >
          > End Class
          >
          >
          >
          > "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
          > news:OWjtK5yyGHA.4548@TK2MSFTNGP05.phx.gbl...
          >> Bill,
          >>
          >> I thought that it was this one.
          >>
          >> http://msdn2.microsoft.com/en-us/library/system.web.httputility.htmldecode.aspx
          >>
          >> I hope this helps,
          >>
          >> Cor
          >>
          >>
          >> "Bill Nguyen" <billn_nospam_please@jaco.com> schreef in bericht
          >> news:%23qlq%23FwyGHA.3440@TK2MSFTNGP06.phx.gbl...
          >>> Below is the "Code" portion in MS Frontpage. On the design screen is what
          >>> I typed in using Unicode. I need to be able to convert data from one
          >>> format to another from within a .NET app
          >>>
          >>> 1. Is there any util/addon that can do this?
          >>> 2. Sample coding to do it on our own
          >>>
          >>> Thanks
          >>>
          >>> Bill
          >>> ------------------
          >>>
          >>>
          >>> Code screen:
          >>> <body>
          >>>
          >>> <p>B&#7887; phi&#7871;u</p>
          >>> <p>Góp ý</p>
          >>> <p>&nbsp;</p>
          >>> <p>Phi&#7871;u b&#7847;u</p>
          >>> <p>K&#7871;t qu&#7843; th&#259;m dò:</p>
          >>> <p>T&#7893;ng s&#7889; phi&#7871;u:</p>
          >>> <p>Xem k&#7871;t qu&#7843;</p>
          >>>
          >>> </body>
          >>>
          >>> ----------------
          >>> Design:
          >>> B? phi?u
          >>> Góp ý
          >>>
          >>>
          >>>
          >>> Phi?u b?u
          >>>
          >>> K?t qu? tham dò:
          >>>
          >>> T?ng s? phi?u:
          >>>
          >>> Xem k?t qu?
          >>>
          >>>
          >>
          >>
          >
          >