SBM ModScript Reference → Programming SBM ModScript → Extension Functions → Ext.IsStringValidUTF8( string s )
Returns true if string contents are valid UTF8. Note, that this only works with string and not Variant.
s
Use this argument to provide a string to evaluate.
bool
Returns true if the contents are valid UTF8.
Example:
var encoded = Ext.IsStringValidUTF8(utf8String);
Copyright © 2007–2017 Serena Software, Inc. All rights reserved.