ANSI characters to HTML Unicode conversion

ANSI characters to HTML Unicode conversion

1
NewbieNewbie
1

    Jan 25, 2007#1

    Hi,

    i am a registered user of UltraEdit.

    I am looking for a macro or routine to convert me all special Western European characters like umlauts, the spanish tilde-n "n~", french accented chars etc. like this:

    ü -> ü

    and return, in a second macro, i.e.

    ü -> ü

    How can i accomplish that? Is there any existing macro available?

    Thanks in advance!

    ///Steph.

    6,684586
    Grand MasterGrand Master
    6,684586

      Jan 27, 2007#2

      I don't have such a macro, but I have quickly created one with all characters with code 128 - 255 which is shown not as a rectangle in the "ASCII Table" (menu "View") with font "Courier New" and "Western European" code page. Extend it to your needs with additional replaces.

      The macro property Continue if a Find with Replace not found must be checked for this macro.

      InsertMode
      ColumnModeOff
      HexOff
      Top
      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 "ˆ"
      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 "”"
      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 "œ"
      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 "¦"
      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 "®"
      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 "¶"
      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 "¾"
      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 "Æ"
      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 "Î"
      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 "Ö"
      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 "Þ"
      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 "æ"
      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 "î"
      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 "ö"
      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 "þ"
      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 "ß"
      Find MatchCase "€"
      Replace All "€"
      Best regards from an UC/UE/UES for Windows user from Austria