LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I insert a non breaking hyphen into a string

Hello,

 

  How can I insert a non breaking hypen into a string? Here are the values of a non breaking hyphen

 

 

HTML Entity (decimal) ‑
HTML Entity (hex) ‑
How to type in Microsoft Windows Alt +2011
UTF-8 (hex) 0xE2 0x80 0x91 (e28091)
UTF-8 (binary) 11100010:10000000:10010001
UTF-16 (hex) 0x2011 (2011)
UTF-16 (decimal) 8,209
UTF-32 (hex) 0x00002011 (2011)
UTF-32 (decimal) 8,209
C/C++/Java source code "\u2011"
Python source code u"\u2011"
Regards,


Kaspar
0 Kudos
Message 1 of 5
(3,869 Views)

WHere is the string going? Where is it going to be used? If you are putting together a string that's going to be interpretted as HTML, use one of the html codings. If it's an ascii string use the three U8 hex values.

 

Of course all this assumes that the proigram reading the string knows how to properly handle a non-breaking hyphen.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(3,838 Views)

Hello,

 

  The string is going into a word document

Regards,


Kaspar
0 Kudos
Message 3 of 5
(3,829 Views)

Then insert the three ascii hex characters.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 5
(3,820 Views)

Hello,

 

  I tried inserting the 3 chars and it did not work, will have to try something else. Stay tuned for further details

 

Regards,


Kaspar
0 Kudos
Message 5 of 5
(3,683 Views)