private String getStringRep(char quoteChar) {

		if (isProbe() || isBadCharSize() || !buf.isInitializedMemory()) {
			return UNKNOWN;
		}

		byte[] stringBytes = convertPaddedToUnpadded(getStringBytes());
		if (stringBytes == null) {
			return UNKNOWN_DOT_DOT_DOT;
		}

		ByteBuffer bb = ByteBuffer.wrap(stringBytes);

		// force BE or LE variants of UTF charsets, consume any BOM
		String adjustedCharsetName = getAdjustedCharsetInfo(bb);

		if (!Charset.isSupported(adjustedCharsetName)) {
			return UNKNOWN_DOT_DOT_DOT;
		}
		Charset cs = Charset.forName(adjustedCharsetName);

		StringRenderBuilder renderer = new StringRenderBuilder(cs, charSize, quoteChar);
		renderer.decodeBytesUsingCharset(bb, renderSetting, stringLayout.shouldTrimTrailingNulls());
		
		String result = renderer.build();
		return result;
	}
Returns a formatted version of the string returned by {@link #getStringValue()}.
<p>
The resulting string will be formatted with quotes around the parts that contain plain ASCII
alpha characters (and simple escape sequences), and out-of-range byte-ish values listed as
comma separated hex-encoded values:
<p>
Example (quotes are part of result): {@code "Test\tstring",01,02,"Second\npart",00}

@param originalOrTranslated boolean flag, if true returns the representation of the
string value, if false returns the representation of the translated value 
@return formatted String
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StringDataInstance.java