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?
LVL 17
Tiras25Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TommySzalapskiCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TommySzalapskiCommented:
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.
0
ozoCommented:
It depends on the app, and perhaps whether you have control of the data being searched.
0
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

xcasCommented:
press an hold the "Alt" key and type 255 in the numeric keypad.. and release the Alt key
0
TommySzalapskiCommented:
Alt+255 is the same as Alt+0160
0
xcasCommented:
and thus you can use Alt+32...

but not the same for or decimal and hexadecimal calculations....
0
TommySzalapskiCommented:
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 ÿ
0
xcasCommented:
..also not the same for binary calculations
0
xcasCommented:
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
0
huacatCommented:
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
0
TommySzalapskiCommented:
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.
0
Tiras25Author 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.
0
HooKooDooKuCommented:
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.
0
TommySzalapskiCommented:
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?
0
user_nCommented:
What programing language  do you use?
0
Tiras25Author Commented:
\040 failed argh!!
0
Tiras25Author Commented:
Programming language - its calling a script csvmerge.bat
0
TommySzalapskiCommented:
\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?
0
TommySzalapskiCommented:
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 " - "
0
Tiras25Author Commented:
I am limited to the custom app.  Thanks though!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.