Fixed string getting cut off if the string had some symbols. The length of the string would not be the same as the bytes length.
This commit is contained in:
@@ -306,6 +306,11 @@ namespace System
|
||||
double value;
|
||||
return double.TryParse(str, out value);
|
||||
}
|
||||
|
||||
public static int GetByteCount(this string str)
|
||||
{
|
||||
return Encoding.UTF8.GetByteCount(str);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BinaryReader
|
||||
|
||||
Reference in New Issue
Block a user