public String getCharRepresentation() {
		if (length < charSize /* also covers case of isProbe() */ ) {
			return UNKNOWN_DOT_DOT_DOT;
		}

		StringDataInstance charseqSDI =
			new StringDataInstance(this, StringLayoutEnum.CHAR_SEQ, buf, length, charsetName);

		char quoteChar = length == charSize
				? StringRenderBuilder.SINGLE_QUOTE
				: StringRenderBuilder.DOUBLE_QUOTE;

		return charseqSDI.getStringRep(quoteChar);
	}
Convert a char value (or sequence of char values) in memory into its canonical unicode
representation, using attached charset and encoding information.

@return String containing the representation of the char.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StringDataInstance.java