fribidi_charset_to_unicode(3)

πŸ’… fribidi_charset_to_unicode β€” the glow-up from charset to Unicode

okay so bestie, you found the fribidi_charset_to_unicode(3) page and honestly? it's giving character-set-to-Unicode-glow-up and it's iconic. this lives in the FriBidi Programmer's Manual (yes, the FriBidi crew, we love them), so pull up a chair πŸŽ€


✨ NAME ✨

fribidi_charset_to_unicode β€” convert string to Unicode. literally that's it, that's the whole job πŸ¦‹


🌸 SYNOPSIS 🌸

#include <../fribidi/lib/fribidi.h>

FriBidiStrIndex fribidi_charset_to_unicode
(
     FriBidiCharSet char_set,
     const char *s,
     FriBidiStrIndex len,
     FriBidiChar *us
);

copy it exactly bestie, no cap, that #include path is weird-looking but it is what it is πŸ™ˆ


πŸ’– PARAMETERS πŸ’–

  • FriBidiCharSet char_set β€” the character set you're converting from. pick your fighter:

Possible values for a FriBidiCharSet are as follows:

  • FRIBIDI_CHAR_SET_UTF8 β€” UTF-8 (Unicode). the main character πŸ‘‘
  • FRIBIDI_CHAR_SET_CAP_RTL β€” CapRTL (Test). yes it says Test, she's a test girly πŸ§ͺ
  • 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 char *s β€” the input string, encoded in char_set. this is the vibe you're bringing in πŸ’«
  • FriBidiStrIndex len β€” the input string length. tell her how long she is, she needs to know πŸ“
  • FriBidiChar *us β€” the output Unicode string. the after photo πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she do? this function converts a string from a character set, to a Unicode string. that's the entire serve. charset in, Unicode out, periodt ✨


🫢 RETURNS 🫢

The length of the new string. that's the number you get back, and it's the length of the new one β€” not the old one, bestie, don't get it twisted 😭


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr:


lowkey if you're going the other direction, fribidi_unicode_to_charset(3) is right there, she's the reverse queen πŸ’œ

and that's the page!! this one came from c2man fribidi-char-sets.h, dated 29 October 2026 β€” mwah, sending you off with a kiss, go convert some strings bestie πŸ“βœ¨πŸ’–

πŸ“¦ where this page comes from