11-10-2014 10:59 AM
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" |
11-10-2014 01:21 PM
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...
11-10-2014 01:29 PM
Hello,
The string is going into a word document
11-10-2014 01:38 PM
Then insert the three ascii hex characters.
Mike...
11-21-2014 11:42 AM
Hello,
I tried inserting the 3 chars and it did not work, will have to try something else. Stay tuned for further details