Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7051173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:13:55+00:00 2026-05-28T03:13:55+00:00

For dealing with ASCII we have strlen, strcat etc.. For UTF16(i.e, UCS2) we have

  • 0

For dealing with ASCII we have strlen, strcat etc..
For UTF16(i.e, UCS2) we have wcscat and wcslen functions.

For dealing with UTF8 and UCS4 what are the functions available in C?
Assume Linux/gcc

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:13:56+00:00Added an answer on May 28, 2026 at 3:13 am

    I don’t think standard C libraries have UTF-8 functions. There are surely libraries for it.

    However, normal str functions can be used with UTF-8 in many cases.
    strlen works well, returning the number of bytes (not characters).
    strcat works (it also overruns your buffer easily, but this is normal for strcat).

    The reason is that the 0 character can’t appear in multi-byte UTF-8 data. So if it appears in a UTF-8 string, it’s surely its end, just like in ASCII.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I frequently have problems dealing with DataRows returned from SqlDataAdapters . When I try
Dealing with classes (nested etc) does not look easy in Python , surprisingly !
I'm dealing with a midlet in j2me, and I have this thread class (say
I have been dealing with FTP lately and I'm not sure about the security
I'm dealing with this situation : I have a color animation script which targets
I'm dealing with a null pointer exception for which I have a stack trace.
I am dealing with unicode strings returned by the python-lastfm library. I assume somewhere
I dealing with the next problem, I have a asp.net web project in which
Dealing with an employee that went over my head
Dealing with Java - which the option you prefer in the most cases -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.