Jump to content
  • Advertisement
Sign in to follow this  
hyeewang

nonprintable character in VS2005 editor.

This topic is 3198 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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


Link to post
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 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 hyeewang
But 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 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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!