Click or drag to resize

GlobalUnicodeHexcodeToChar method

Converts a character string that represents a Unicode hex code e.g.: 20AC (=> €) into the corresponding character.

Converts a string, representing a hex-unicode character like 20AC, to ascii €.


Namespace: NetEti.Globals
Assembly: NetEti.Global (in NetEti.Global.dll) Version: 1.0.0+ad672dc5430e1683eae7461ce3945c8e9dce1c49
Syntax
public static string UnicodeHexcodeToChar(
	
	string unicodeHexcode,
	
	string defaultValue
)

Parameters

unicodeHexcode  String

The four-digit hex code of the Unicode character set. Leading 0s do not have to be specified.

Hex-unicode consisting of four characters like 20AC. Leading zeroes are optional.

defaultValue  String

The default value that is returned if it is not a hex code with a maximum of four digits.

Default returned, if there was no conversion possible.

Return value

String

The character of the Unicode character set that is classified by the hex code.

Ascii-equivalent to the given unicode-sequence.

See also