fribidi_unicode_to_charset(3)
π fribidi_unicode_to_charset β NAME
okay so bestie, fribidi_unicode_to_charset is literally the glow-up artist for your text β it converts a string from Unicode into some other charset. this is from the Programmer's Manual, and it ate, no cap π«Ά
β¨ SYNOPSIS β¨
#include <../fribidi/lib/fribidi.h>
FriBidiStrIndex fribidi_unicode_to_charset
(
FriBidiCharSet char_set,
const FriBidiChar *us,
FriBidiStrIndex len,
char *s
);
look at that signature. main character energy, honestly π
π PARAMETERS π
FriBidiCharSet char_setβ the charset you're converting to. it's giving "destination era" β¨
the possible values for a FriBidiCharSet are, and I'm listing every single one because we don't skip:
FRIBIDI_CHAR_SET_UTF8β UTF-8 (Unicode).FRIBIDI_CHAR_SET_CAP_RTLβ CapRTL (Test).FRIBIDI_CHAR_SET_ISO8859_6β ISO8859-6 (Arabic).FRIBIDI_CHAR_SET_ISO8859_8β ISO8859-8 (Hebrew).FRIBIDI_CHAR_SET_CP1255β CP1255 (MS Hebrew/Yiddish).FRIBIDI_CHAR_SET_CP1256β CP1256 (MS Arabic).
const FriBidiChar *usβ your input Unicode string, the material she's working with πFriBidiStrIndex lenβ how long that input string is. yes, you gotta tell her. she's not gonna count for you πchar *sβ the output string, all encoded inchar_set. this is where the magic lands, bestie πͺ
π¦ DESCRIPTION π¦
so what does it do? it takes a Unicode string and converts it into a string in another character set. literally that's the vibe. and β this part is important β it also null-terminates the output string, so your s is properly closed off, no loose ends, periodt π
πΈ RETURNS πΈ
the length of the new string. that's the whole return value. iconic brevity β¨
π SEE ALSO π
the whole friend group, all present and accounted for:
fribidi_shape_arabic(3), fribidi_get_par_direction(3), fribidi_get_par_embedding_levels_ex(3), fribidi_reorder_line(3), fribidi_get_bidi_type(3), fribidi_get_bidi_types(3), fribidi_get_bidi_type_name(3), fribidi_charset_to_unicode(3), fribidi_parse_charset(3), fribidi_debug_status(3), fribidi_set_debug(3), fribidi_mirroring_status(3), fribidi_set_mirroring(3), fribidi_reorder_nsm_status(3), fribidi_set_reorder_nsm(3), fribidi_log2vis_get_embedding_levels(3), fribidi_get_type(3), fribidi_get_type_internal(3), fribidi_get_par_embedding_levels(3), fribidi_join_arabic(3), fribidi_get_joining_type(3), fribidi_get_joining_types(3), fribidi_get_joining_type_name(3), fribidi_get_mirror_char(3), fribidi_shape_mirroring(3), fribidi_get_bracket(3), fribidi_get_bracket_types(3), fribidi_shape(3), fribidi_remove_bidi_marks(3), fribidi_log2vis(3)
like I said. the whole group chat. π«Ά
and that's the page, bestie π this beauty was generated by c2man from fribidi-char-sets.h, dated 29 October 2026 β catch you in the next manpage, mwah πβ¨
π¦ where this page comes from
- arch rolling: fribidi 1.0.18-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms