Allocates a new string buffer containing the first n
bytes of str
converted to the user's locale charset.
str |
string in UTF-8 charset |
n |
number of bytes to convert |
a new string buffer containing the first |