Dynadot โ€” .com Transfer

Removing the hidden space

SpaceshipSpaceship
Watch

Crusader

Established Member
Impact
6
I'm having a slight problem with the space character (0xCA) which can be made by alt 0160.

I can't seem to strip it out.

I've tried....

PHP:
$post = str_replace( chr(0xCA), '', $post );

But they still get throught.

Ideas?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Have you tried ereg_replace function?
 
0
•••
$post = ereg_replace(' +', '', $post);
 
0
•••
Are you sure that it is 0xCA in the string? Alt + 160 should (at least theoretically) give 0xA0, because 160 is A0 in hexadecimal.
 
0
•••
tried %20

?
 
0
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back