tinker
-
Posts
328 -
Joined
-
Last visited
Never
Posts posted by tinker
-
-
i got a string, 'C++.html', on the first usage when it comes out of database it ok, but then it not, i try lots of things such as,
echo htmlspecialchars('C++.html')."<br>"; echo htmlentities("C++.html")."<br>"; $sret .= "<br>:".bin2hex("+").":".urlencode("+").":".rawurlencode("+").":".utf8_encode("+").":<br>";
also i try decode counterparts for each case...
when it appear in page or url it comes out as two spaces, when i run one through 'ord' it say 32, but + is 43 ascii
anybody know why or how to fix please?
++ probs
in PHP Coding Help
Posted
the +'s are replaced by space's, which when checked with ord are 32 not 43, therefore how to encode to stay as +'s