Visual Studio 2019 and the Weird, Wonderful Nonbreaking Space
-
I just pasted a block of #define directives from the application header of a C++ program that I am writing in preparation for writing a short article for the Actian developer blog. When I applied the Trim worksheet function to a substring that contains a hexadecimal value that I wanted in its own column, I noticed that the cell had a leading space. Since it obviously wasn't a SPACE or a TAB, I turned on the hexadecimal view mode in my editor (UltraEdit), and discovered that the hexadecimal code of the character at that location was 0xA0, 160 decimal, the nonbreaking space character.
David A. Gray Delivering Solutions for the Ages, One Problem at a Time Interpreting the Fundamental Principle of Tabular Reporting
-
I just pasted a block of #define directives from the application header of a C++ program that I am writing in preparation for writing a short article for the Actian developer blog. When I applied the Trim worksheet function to a substring that contains a hexadecimal value that I wanted in its own column, I noticed that the cell had a leading space. Since it obviously wasn't a SPACE or a TAB, I turned on the hexadecimal view mode in my editor (UltraEdit), and discovered that the hexadecimal code of the character at that location was 0xA0, 160 decimal, the nonbreaking space character.
David A. Gray Delivering Solutions for the Ages, One Problem at a Time Interpreting the Fundamental Principle of Tabular Reporting
I always use invisible whitespace in my comment and human strings, don't you?! Everyone loves them! :D
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
I just pasted a block of #define directives from the application header of a C++ program that I am writing in preparation for writing a short article for the Actian developer blog. When I applied the Trim worksheet function to a substring that contains a hexadecimal value that I wanted in its own column, I noticed that the cell had a leading space. Since it obviously wasn't a SPACE or a TAB, I turned on the hexadecimal view mode in my editor (UltraEdit), and discovered that the hexadecimal code of the character at that location was 0xA0, 160 decimal, the nonbreaking space character.
David A. Gray Delivering Solutions for the Ages, One Problem at a Time Interpreting the Fundamental Principle of Tabular Reporting
David A. Gray wrote:
I just pasted a block of #define directives [sic] from the application header of a C++ program that I am writing...
He that lieth down with dogs shall rise up with fleas. --Poor Richard's Almanack
Robust Services Core | Software Techniques for Lemmings | Articles