API Reference > ecschema-Metadata > Metadata > ECName > encode encode MethodStatic Create an ECName from an arbitrary string, encoding any special characters as "x####" where "####" is the UTF-16 character code. encode(input: string): ECName throws ECObjectsError if input is an empty string. Parameter Type Description input string Returns - ECName Defined in core/ecschema-metadata/src/ECName.ts Line 62 Last Updated: 11 June, 2024