D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] More scripting silliness...



On Wednesday 02 Jul 2003 5:37 pm, Jonathan Melhuish wrote:
> However, what I was forgetting is that Interchange uses strokes ('slashes'
> if you prefer, but that sounds a bit violent to me) in the search string. 

Just replace each / with the hexadecimal equivalent %2F and the browser will 
replace the slash. 
e.g.:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.codehelp.co.uk%2Findex.html

Standards: the best way to do things.

:-)

(i.e. the W3C way to use / in any query string is as %2F - that is probably 
why Google balks at it. Similarly with : -> %3A.) 

There is a full list of hexadecimal equivalent sequences, try:
http://www.linuxpowered.com/archive/gnuman/recode/recode.html#SEC8
Hexadecimal ASCII
(needs to be viewed in a 'fixed font')

 00 nul  10 dle  20 sp 30 0  40 @  50 P  60 `  70 p 
 01 soh  11 dc1  21 !  31 1  41 A  51 Q  61 a  71 q 
 02 stx  12 dc2  22 "  32 2  42 B  52 R  62 b  72 r 
 03 etx  13 dc3  23 #  33 3  43 C  53 S  63 c  73 s 
 04 eot  14 dc4  24 $  34 4  44 D  54 T  64 d  74 t 
 05 enq  15 nak  25 %  35 5  45 E  55 U  65 e  75 u 
 06 ack  16 syn  26 &  36 6  46 F  56 V  66 f  76 v 
 07 bel  17 etb  27 '  37 7  47 G  57 W  67 g  77 w 
 08 bs   18 can  28 (  38 8  48 H  58 X  68 h  78 x 
 09 ht   19 em   29 )  39 9  49 I  59 Y  69 i  79 y 
 0a nl   1a sub  2a *  3a :  4a J  5a Z  6a j  7a z 
 0b vt   1b esc  2b +  3b ;  4b K  5b [  6b k  7b { 
 0c np   1c fs   2c ,  3c <  4c L  5c \  6c l  7c | 
 0d cr   1d gs   2d -  3d =  4d M  5d ]  6d m  7d } 
 0e so   1e rs   2e .  3e >  4e N  5e ^  6e n  7e ~ 
 0f si   1f us   2f /  3f ?  4f O  5f _  6f o  7f del

Generally, it's values between %20 and %2f and between %3A and %40 you'd need.

-- 

Neil Williams
=============
http://www.codehelp.co.uk
http://www.dclug.org.uk

http://www.wewantbroadband.co.uk/

Attachment: pgp00005.pgp
Description: signature


Lynx friendly