Benutzer-Werkzeuge

Webseiten-Werkzeuge


lcd4linux:plugin_iconv

iconv plugin

Convert the string 'ÖÖÖÖÖÖHMMM' from UTF-8 to ISO-8859-1:

Widget iconv-test {
    class 'Text'
    expression iconv('UTF-8', 'ISO-8859-1', 'ÖÖÖÖÖÖHMMM')
    width 20
    align 'P'
    speed scroller
    update tack
}

Code information

If you look at the code, then it should be easy to understand:

/* iconv function, convert charsets */
/* valid "to" and "from" charsets can be listed by running "iconv --list" from a shell */
/* utf16 & utf32 encodings won't work, as they contain null bytes, confusing strlen */
static void my_iconv(RESULT * result, RESULT * charset_from, RESULT * charset_to, RESULT * arg)
lcd4linux/plugin_iconv.txt · Zuletzt geändert: 2022/02/15 20:09 von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki