diff --git a/api/@ohos.util.d.ts b/api/@ohos.util.d.ts index 4ec1ce1808fc942d2bd3cfe096227443605a733b..ea00afe0705860e3a1e29303ec61239bb45005b1 100644 --- a/api/@ohos.util.d.ts +++ b/api/@ohos.util.d.ts @@ -132,6 +132,14 @@ declare namespace util { */ constructor(); + /** + * the textEncoder constructor. + * @since 9 + * @syscap SystemCapability.Utils.Lang + * @param encoding The string for encoding format. + */ + constructor(encoding?: string); + /** * Returns the result of encoder. * @since 7