Check to see if the UTF-8 text
will fit safely within charset
.
this |
a Charset mask |
charset |
a charset |
text |
utf-8 text to check |
len |
length of |
true if it is safe to encode |