How to truncate utf8 text
For example you have got some data from server in utf8 format and store it in some char(byte) array . Every symbol in text could be presented with different amount of bytes, here is example how to cut (restrict) it to desired lenght.
Note: allocated clippedStr should be freed after usage...
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
Enter a description.