unprintable characters

  • Thread starter Thread starter MAF
  • Start date Start date
M

MAF

Does anyone know how to add unpritable characters to a string?

string mystring = "";

// I want to add char190 to the string

mystring = "this is a test<char 190>"
 
Hi MAF,

You can add the character via a Unicode escape:

"this is a test\u00BE"

Remember to convert the number to Hex. i.e. 190 = BE.

Joe
 
Is there a quick function like HEX(intVal)?
Joe Mayo said:
Hi MAF,

You can add the character via a Unicode escape:

"this is a test\u00BE"

Remember to convert the number to Hex. i.e. 190 = BE.

Joe
 
Back
Top