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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top