ICONV_CANONICALIZE(3)
π ICONV_CANONICALIZE(3) π
okay so bestie, real talk: this is a page from the Library Functions Manual, and today's main character is iconv_canonicalize β a libc function that takes your messy encoding name and gives it a glow-up into its one true canonical form. β¨
π LIBRARY π
Standard C Library β that's libc, and you link it with -lc. classic, iconic, always invited to the party. π
πΈ SYNOPSIS πΈ
#include <iconv.h>
const char *
iconv_canonicalize(const char *name);
like, that's the whole vibe. one include, one function, one const char * coming back at you. π«Ά
π¦ DESCRIPTION π¦
So the iconv_canonicalize() function does one (1) thing and does it slay: it resolves the character encoding name you passed in as the name argument, and gives you back its canonical form. no cap. if you hand it some alias or alternate spelling of an encoding, it's gonna point you at the real one. that's the whole job. π
β RETURN VALUES β
- success β upon successful completion,
iconv_canonicalize()returns the canonical name of the given encoding. β¨ - already iconic β if the
nameyou specified is already a canonical name, the same value is returned. (no notes. already perfect.) π - not a real encoding β if the specified
nameis not an existing character encoding name,NULLis returned. π
π₯ SEE ALSO π₯
iconv(3)β the main character's bestie, go read it
π STANDARDS π
okay so iconv_canonicalize is not standard β it's a non-standard extension, which first appeared in the GNU implementation and then was adopted in FreeBSD 9.0, for compatibility's sake. so like, if you're on something that isn't glibc-or-FreeBSD-flavored, do a vibe check first. π
π AUTHORS π
This manual page was written by Gabor Kovesdan <gabor@FreeBSD.org>. thank you gabor, you ate. π
ngl this one's short and sweet β but the details are load-bearing, so don't go renaming your encodings and expecting a different answer. π§
and that's a wrap bestie!! π this page came to you from Debian, dated October 20, 2009, and it's the ICONV_CANONICALIZE(3) page β go canon-ify something. periodt. π
β¨
π¦ where this page comes from
- nixpkgs unstable: libiconv 115.100.1
- Copyright (c) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
- Copyright (C) 2001-2004 by the Institute of
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms