Sign in to follow this  
hyeewang

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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
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 this post


Link to post
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 phresnel
Uhm, 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 this post


Link to post
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 this post


Link to post
Share on other sites
Quote:
Original post by phresnel
Quote:
Original post by Sik_the_hedgehog
Isn'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 this post


Link to post
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]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this