STRPTR s = hw_ConvertString(STRPTR in, int infmt, int outfmt, struct hwTagList *tags);
infmt
to outfmt
and returns it.
hw_ConvertString()
allocates the resulting string for you. You have to free this string
using hw_FreeString() then.
The following formats are currently available:
HWOS_ENCODING_ISO8859_1:
HWOS_ENCODING_UTF8:
HWOS_ENCODING_AMIGA:
HWOS_ENCODING_AMIGA
can only be converted
to and from HWOS_ENCODING_UTF8
. It must not be used together with HWOS_ENCODING_ISO8859_1
.
(V7.0)
The tag list passed in tags
may contain the following tags:
HWCSTAG_LENGTH:
HWCSTAG_LENGTH
tag
NULL
NULL
on error