Results 1 to 2 of 2

Thread: encoding problem !

  1. #1

    Thread Starter
    Hyperactive Member fabianus's Avatar
    Join Date
    Sep 2004
    Location
    Paris
    Posts
    402

    Question encoding problem !

    Hello!

    I move from the DNN-Forum to CommunityServer.
    Here is the problem that I encounter while transferring the posts:
    The DNN-Forum stores the body of the posts in an encoding that is different from CommunityServer.

    Here is a spample :


    THE DNN-FORUM BODY STARTS LIKE THIS :

    Code:
    <p class="MsoNormal"><span lang="DE" style="font-size: 10pt;">Hallo Ihr,<o:p></o:p></span></p>



    IN COMMUNITYSERVER THE SAME BODY STARTS LIKE THIS :

    Code:
    <P class=MsoNormal><SPAN lang=DE style="FONT-SIZE: 10pt">Hallo Ihr,<?xml:namespace prefix = o /><o:p></o:p></SPAN></P>


    I need to know how to do the transformation I want to do this with vb.net. I am looking for some code that does something like:

    Dim myDNNForumBody as string = [the value of the body stored by DNN-Forum]
    Dim myCommunityServerBody as string = decoding(myDNNForumBody)

    But I do not know how to do the "deconding" :-)

    Thank you very much for any help !

    Regards,
    Fabian
    Last edited by fabianus; May 3rd, 2006 at 11:49 AM.

  2. #2

    Thread Starter
    Hyperactive Member fabianus's Avatar
    Join Date
    Sep 2004
    Location
    Paris
    Posts
    402

    Resolved Re: encoding problem !

    I think I got it !

    System.Web.HttpUtility.HtmlDecode()

    Regards,
    Fabian

Posting Permissions

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



Click Here to Expand Forum to Full Width