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 in char_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