I m Buildingsitemap and I need a way to Immediateeck how many UTF-8 encoded bbytes StringBuilder now contained?
这样做的阴险方式是:
Encoding.UTF8.GetBytes(builder.ToString()).Length
但是,这难道不是一小 吗?
利用建筑商。 Length don t work as certain charactes resolution to 2 bytes such as ÅÄÖ.