stringprep_convert(3)
β¨ stringprep_convert(3) β¨
okay bestie, we're in the libidn section of the manual (section 3, the library-calls girlies π
) and today's main character is stringprep_convert. she does one thing and she does it iconically: she takes your lil string and yeets it from one character set to another. no cap. let's get into it π¦
πΈ NAME πΈ
stringprep_convert β it's literally an API function, that's the whole vibe π
π«Ά SYNOPSIS π«Ά
#include <stringprep.h>
char * stringprep_convert(const char * str, const char * to_codeset,
const char * from_codeset);
yes babe, three args, one char * back, we love a consistent queen β¨
π ARGUMENTS π
const char * strβ your input, and she's zero-terminated okay?? like she ends in a\0, that's her whole thing π«Άconst char * to_codesetβ the name of the destination character set. where we're going, the ~future~ πconst char * from_codesetβ the name of the origin character set, aka the one thatstris actually in right now. the "as used bystr" part is doing a lot of heavy lifting here so pls read it π
π DESCRIPTION π
so. she converts the string from one character set to another, and she does it using the system's iconv() function β not her own thing, she's borrowing the system's iconv, we stan a collaborator π
Return value: she hands you back a newly allocated zero-terminated string, which is str all transcoded into to_codeset. note the newly allocated bestie β that memory is yours to free, don't just leave her hanging π
π REPORTING BUGS π
found a bug? spill. report bugs to <help-libidn@gnu.org>.
general guidelines for reporting bugs live at: https://www.gnu.org/gethelp/
and the GNU Libidn home page (her house, her rules π ): https://www.gnu.org/software/libidn/
π COPYRIGHT π
Copyright Β© 2002-2026 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. no royalty, no drama, just vibes π
π¦ SEE ALSO π¦
the full documentation for libidn is maintained as a Texinfo manual β the whole lore, fr fr. if the info and libidn programs are properly installed at your site, this command
info libidn
should give you access to the complete manual π. and as an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/manual/
and that's the whole page bestie!! this was libidn 1.44, stringprep_convert(3), and honestly? she ate. go forth, transcode responsibly, and free your memory πβ¨π
π¦ where this page comes from
- arch rolling: libidn 1.44-1 Β· GPL3 AND LGPL
- epel 10: libidn-devel 1.44-1.el10_3 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: libidn-devel 1.44-1.fc43 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: libidn-devel 1.44-1.fc43 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: libidn-devel 1.44-1.fc44 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: libidn-devel 1.44-1.fc44 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- ubuntu stonking: libidn-dev 1.44-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms