Textkonverter (kodierungen!)



  • Moinsen,
    kennt jemand einen Textkonverter mit dem man Texte in folgenden Kodierungen speichern kann?

    Mindestens diese Kodierungen:

    US-ASCII
    UTF-8
    UTF-16

    Die folgenden wären auch nicht schlecht (optional, nicht unbedingt nötig):

    UTF-7
    UTF-32
    UTF-16BE
    UTF-16LE

    Hoffe jemand kennt sowas, danke

    ndT Lupo

    Überlasse das Hassen jenen, die zu schwach sind, um lieben zu können.
    ^Michel del Castillo^



  • Ich wette: Keiner wird auf deine Frage antworten.



  • Schreib dir halt schnell was mit Java. Einfach bytes einlesen und in String umwandeln

    Every implementation of the Java platform is required to support the following character encodings. Consult the release documentation for your implementation to see if any other encodings are supported.

    US-ASCII Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set
    ISO-8859-1 ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1
    UTF-8 Eight-bit Unicode Transformation Format
    UTF-16BE Sixteen-bit Unicode Transformation Format, big-endian byte order
    UTF-16LE Sixteen-bit Unicode Transformation Format, little-endian byte order
    UTF-16 Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial byte-order mark (either order accepted on input, big-endian used on output)

    Das dumme Board will die richtige URL nicht.
    http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html#String(byte[], java.lang.String)



  • emacs kanns auch. ist aber nicht wirklich ein textkonverter...



  • Falls du zur glücklichen Fraktion der Linux-Nutzer gehörst:

    $ iconv --help
    Usage: iconv [OPTION...] [FILE...]
    Convert encoding of given files from one encoding to another.
    

    Ich werde jetzt nicht sagen, welche Kodierungen das Programm kennt. Das ist immerhin eine Liste mit 961 Einträgen.
    Aber man kann die Liste ja auch durchsuchen. Und die Ergebnisse wären durchaus interessant für dich:

    $ iconv -l | egrep '^(UTF|US)-' | tr -d /
    US-ASCII
    UTF-7
    UTF-8
    UTF-16
    UTF-16BE
    UTF-16LE
    UTF-32
    UTF-32BE
    UTF-32LE
    

    😉



  • hmmm... warum kramt ihr so alte sachen raus?!? 🤡

    ndT Lupo

    Alle Körper sind entweder in Bewegung oder in Ruhe.
    ^Baruch de Spinoza^



  • Lupo4u2 schrieb:

    hmmm... warum kramt ihr so alte sachen raus?!? 🤡

    ndT Lupo

    Alle Körper sind entweder in Bewegung oder in Ruhe.
    ^Baruch de Spinoza^

    Weil es sowieso keiner merkt, wenn der Thread von 2004 (letzte Seite) ist.


Anmelden zum Antworten