We help IT Professionals succeed at work.

Any ASCii charachters to simulate blank/space?

I am using a search app that doesn't accept spaces.  Is there a way to simulate spaces with some other characters?  For example I need spacehyphenspace.  Any ascii charachters or anything else?
Any ideas?
Comment
Watch Question

Awarded 2010
Top Expert 2013
Commented:
There is a non-breaking space (character 160, type it using Alt+0160 using the keypad).
That will make it look like a space is there but it probably won't help you with your search app since it will search for that character (which won't exist).

There is no way to get around it in your case most likely unless it lets you search for multiple words if you add + or something between them.
Awarded 2010
Top Expert 2013
Commented:
If it parses your text like HTML code, then %20 is a space character so word%20word would work, but I doubt that will work too. What search app are you using?

By the way, that non-breaking space let's you do some fun things even if it won't help with the search.
ozo
Most Valuable Expert 2014
Top Expert 2015
Commented:
It depends on the app, and perhaps whether you have control of the data being searched.
Commented:
press an hold the "Alt" key and type 255 in the numeric keypad.. and release the Alt key
Awarded 2010
Top Expert 2013
Commented:
Alt+255 is the same as Alt+0160
Commented:
and thus you can use Alt+32...

but not the same for or decimal and hexadecimal calculations....
Awarded 2010
Top Expert 2013
Commented:
Anyway, it still won't work because the search app isn't going to interpret that as anything special. It looks to humans to be the same as a space, but to the computer it's the just a different character like # or ~ or û or ÿ
Commented:
..also not the same for binary calculations
Commented:
is not the right to claim that it won't work

as "ozo" said.. it depends on the app

we have no details about it
Commented:
I guess you want to using multi-keywords in that search app, but it seems the app can't support multi-keywords by space.

Even we can using other ASCII code like Alt + 255 to separate some words, I'm afraid your input still be parsed as whole as one word
Awarded 2010
Top Expert 2013
Commented:
is not the right to claim that it won't work

Okay, then I'll wager a million US dollars.
If the search app won't allow spaces, then it isn't going to randomly interpret special ANSI characters as some kind of boolean connector or separator.

Author

Commented:
I know %20 did not work.  Let me try other methods.  My guess it wouldn't work either.  Let you know in a few.
Will the app accept spaces if the entire search phrase is within quotation marks?

"Search on This"


Other wise, the only way I can think it might work is if the search app has a form of escape characters.

For example, if you need to include a space (Hex 20) in the name of a web page, you use the percent sign (%) followed by the hex value of the character you want.  So the answer might be

Search%20on%20This

But there are various ways "escape" characters are done.  As an alternate example, if you wanted to indicate a space in C source code string, you could type...

"Search\040on\040This"

because '\0' is a C source code escape code to mean "an octal number" where 40 in octal is ascii space.
Awarded 2010
Top Expert 2013
Commented:
What is the search app? Is it connected to your smart phone or something? Is it on a web page?
There might be documentation that tells you how to do advanced searching.
What are you wanting the space to do? Be taken literally or serve as a boolean connector?
Commented:
What programing language  do you use?

Author

Commented:
\040 failed argh!!

Author

Commented:
Programming language - its calling a script csvmerge.bat
Awarded 2010
Top Expert 2013
Commented:
\0 is C source code to mean the null character.
None of these escape characters should be expected to work on your search app though since it will probably take everything in literally. If they are parsing it enough to disallow spaces, then I highly doubt they included the ability to use escape sequences.

Again, can you share what the app is?
Awarded 2010
Top Expert 2013
Commented:
Batch scripts use white space to separate words, variables, etc. Did quotes work? Most batch scripts accept quotes around spaces to mean to take them literally. Like " - "

Author

Commented:
I am limited to the custom app.  Thanks though!