convert HTML2TEXT

convert HTML2TEXT

19
Basic UserBasic User
19

    Jun 20, 2006#1

    Hi,

    I have got a HTML-file with encoded special chars (ä, ß, ...). I want to decode all these chars into their coresponding letter (ä, ß, ...). I could do this with find&replace with each single character.

    I have found the icon TEXT2HTML in the HTML-symbol bar. But I need the exact opposite. How to do this with ALL special chars in ONE SWEEP? Macro?

    6,675585
    Grand MasterGrand Master
    6,675585

      Jun 20, 2006#2

      I use for this task a macro with macro property Continue if a Find with Replace not found enabled.

      IfExtIs "html"
      Else
      IfExtIs "htm"
      Else
      ExitMacro
      EndIf
      EndIf
      InsertMode
      ColumnModeOff
      HexOff
      IfSel
      Find MatchCase "ä"
      Replace All SelectText "ä"
      Find MatchCase "ö"
      Replace All SelectText "ö"
      Find MatchCase "ü"
      Replace All SelectText "ü"
      Find MatchCase "Ä"
      Replace All SelectText "Ä"
      Find MatchCase "Ö"
      Replace All SelectText "Ö"
      Find MatchCase "Ü"
      Replace All SelectText "Ü"
      Find MatchCase "ß"
      Replace All SelectText "ß"
      Find MatchCase "€"
      Replace All SelectText "€"
      Else
      Find MatchCase "ä"
      Replace All "ä"
      Find MatchCase "ö"
      Replace All "ö"
      Find MatchCase "ü"
      Replace All "ü"
      Find MatchCase "Ä"
      Replace All "Ä"
      Find MatchCase "Ö"
      Replace All "Ö"
      Find MatchCase "Ü"
      Replace All "Ü"
      Find MatchCase "ß"
      Replace All "ß"
      Find MatchCase "€"
      Replace All "€"
      EndIf
      Best regards from an UC/UE/UES for Windows user from Austria

      19
      Basic UserBasic User
      19

        Jun 20, 2006#3

        Danke Mofi,

        I cut some part of the Macro to make it available for all file-types and added some special characters.

        Runs perfect!

        112
        Power UserPower User
        112

          Jun 21, 2006#4

          The reverse HTML2TEXT function is a GOOD idea. Send a suggestion to IDM using the methods in the forum header...

          Paolo
          There is no such thing as an inconsistently correct system...
          Therefore, aim for consistency; in the expectation of reaching correctness!