Added missing UTF-8 charset handling when calculating the length of a multipart content as it is also done when computing the length of a single content.
This fixes severe Content-Length issues when wrong encoded UTF-8 characters are used in content. When sending such characters by using the getRawContent() method they may be expanded from one to two bytes and the Content-Length would be wrong.
Added missing UTF-8 charset handling when calculating the length of a multipart content as it is also done when computing the length of a single content. This fixes severe Content-Length issues when wrong encoded UTF-8 characters are used in content. When sending such characters by using the getRawContent() method they may be expanded from one to two bytes and the Content-Length would be wrong.