nonprintable character in VS2005 editor.

Recommended Posts

Surprisedly,I found a nonprintable character in *.c file when using VS2005. It look like a circle and a cross in up-down order. But if I used ultraedit to open that file, it displayed a long line seeming to be endless in that location. There are 4 such same nonprintable character altogether in that file. I complie it and it work well,just as nonexisted at all. I wonder, How the author type it? And what is its usage? Cheers HyeeWang@gmail.com

Share on other sites
Can you cut'n'paste the character here so we can see?

My guess is it's an encoding issue. Given than you're in China, I would assume your system locale is set to Chinese, whereas the person who sent you the file probably has his locale set to something else. So your system is interpreting the byte values according to the Chinese encoding, when in fact he wrote it using some other encoding. But that's just a guess...

This is why Unicode is so cool :-)

Share on other sites
Thank you. Codeka.

It can not be displayed rightly in other editor. So if I copy and paste it here,it would dispaly as follow --- .

Share on other sites
It display nothing here,but in editor window of this website,it dispaly a hollow square box.
The "---" is that I added as dash.

Share on other sites
There are 4 such same nonprintable character altogether in that file. They resided in instruction line separately,not comment line. There is nothing other than such nonprintable character in that singe instruction line.

Share on other sites
Take a screenshot, crop it so that only the characters are shown, and put the pic here?

Though that said, if they really don't affect the building... Just ask to whoever commited the change with the characters to see if they're meant to be there (a wrongly interpreted comment?), and if not, then just get rid of them.

Share on other sites
Thank you.
I can print the screen and save it be a file. But how can submit the file here?
I did not find any function menu about attached file in this forum.

The project built and run well. I am only puzzled by that strange expression.

Share on other sites
Quote:
 circle cross up-down

Uhm, it was not by chance this one:

?

Which happens to be the canonical symbol used for the female sex, at least in western culture.

[Edited by - phresnel on September 11, 2009 7:44:32 AM]

Share on other sites
Quote:
 Original post by hyeewangBut if I used ultraedit to open that file...
Can you press Ctrl+H in ultraedit and tell us what the hex value for that character is?

Share on other sites
Quote:
 Original post by hyeewangI can print the screen and save it be a file. But how can submit the file here?I did not find any function menu about attached file in this forum.

You don't. You upload the pic somewhere, then you use the HTML img tag with the address of the pic as follows (using the URL of the pic, of course):
<img src="http://www.example.com/blah.png" />
Quote:
 Original post by phresnelUhm, it was not by chance this one:*** picture ***Which happens to be the canonical symbol used for the female sex, at least in western culture.

Isn't that the page feed character? Or the vertical tab one, although I don't think it's that one.

Share on other sites
Quote:
 Original post by Sik_the_hedgehogIsn't that the page feed character? Or the vertical tab one, although I don't think it's that one.

I think those are not exactly visible characters. Female, btw.

Is it on one of ...
* ASCII
* Unicode (ouch, not recommended yet)

Share on other sites
Oh look what I have found: http://www.unicode.org/charts/PDF/U2600.pdf: Astrological Symbols, 2640, FEMALE SIGN = Venus:

(can be that you see nothing, above, or some noisy appearance, depending on font and browser)

Form Feed is 000C, and looks like a double F ("FF", just coupled together; same in ASCII). Other control characters are here.

Some more variations of sex signs are under "gender symbols".

Share on other sites
Quote:
Original post by phresnel
Quote:
 Original post by Sik_the_hedgehogIsn't that the page feed character? Or the vertical tab one, although I don't think it's that one.

I think those are not exactly visible characters.

Yeah, but at least on IBM machines, they had a symbol assigned to them. The female symbol was one of them, and if I recall correctly, it was assigned to the same code as "page feed", which was used by old printers that only knew to print text to switch to the next page.

Go look some old pre-formatted DOS text file into a text editor (preferably a text-mode one, not a graphic-mode one), you'll find that symbol at the end of each page.

Share on other sites
On a similar note, MSVC has a bug whereby if you paste some unicode text in it and then delete it, sometimes it leaves invisible characters that give odd compilation errors.

Share on other sites
Thank you All.
Yeah. I copyed that character solely to ultraedit editor and it looked like a straight line seeming to be endless,I pressed ctrl-H,it displayed 0C in the initial location,not 000C.

In VS2005,it's apperance is exactly something like what phresnel gave,with a size of a single character.

I copied and pasted phresnel's pic,it displayed well here.

HyeeWang

[Edited by - hyeewang on September 14, 2009 1:03:45 AM]

sorry for edit.

Create an account

Register a new account

• Forum Statistics

• Total Topics
628402
• Total Posts
2982472

• 9
• 10
• 9
• 20
• 24