Nimony

The road to Nim 3

encodings

nimony/lib/std/encodings.nim

Routines for converting between different character encodings. On UNIX, this uses the iconv:idx: library, on Windows the Windows API.

On Android, iconv comes from Bionic's libc.so and is available from API 28. It only supports the UTF encodings, US-ASCII and WCHAR_T, so the default CP1252 source of open is not available there.

The following example shows how to change character encodings.