World: r3wp
[All] except covered in other channels
older newer | first last |
Terry 9-Feb-2005 [1048] | Sunanda, i need to replace escaped charaters in strings.. "Carl Sassenrath" |
Sunanda 9-Feb-2005 [1049] | You'll probably need a parse pass then. Or a replace loop. |
Terry 9-Feb-2005 [1050x2] | I have a block of value pairs, and can do a foreach [ascii chara][replace/all ..] but that seems rather crude |
I find it curious that nothing exists in the library for this? Every web page sending a GET request to a Rebol cgi script escapes this stuff. Am i the only one that needs to deal with it? | |
Sunanda 9-Feb-2005 [1052x2] | Most of us just need to do it the other way around -- and that's automatic: >> to-url "carl S" == carl S |
Terry --forget all that. Try dehex | |
Terry 9-Feb-2005 [1054x2] | hmm :) |
I need to read the Rebol dictionary more often ;) | |
Sunanda 9-Feb-2005 [1056] | So do I :-) |
Terry 9-Feb-2005 [1057x2] | It's not a perfect solution, I still need a block of values to handle odd browser escaping.. for example, when you add a © to a url, Mozilla escapes it with "%C2%A9" .. adding that extra ascii character for some reason. |
Add to that mess things like html forms replacing spaces with "+" .. "Carl+Sassenrath" .. what a mess. | |
Izkata 9-Feb-2005 [1059x2] | Take a look at 'dehex |
>> dehex {%41%42%43} == "ABC" | |
Chris 9-Feb-2005 [1061x2] | Terry, for want of a better way to handle this -- if you add the 'accept-charset' attribute to the <form> tag, it will encode the way you want it: accept-charset="windows-1252,iso-8859-1" |
Otherwise, it defaults to what I assume is a Unicode pair for extended characters. | |
Terry 10-Feb-2005 [1063] | This just in .. Prince Charles to Marry Camilla Parker Bowles.. remember .. you heard it here first. |
Graham 10-Feb-2005 [1064] | hmm.. and if Prince Charles ascends the throne in due course, he will head of the church of england? |
Terry 10-Feb-2005 [1065x2] | That's the big debate at the moment. |
The news is almost as big as http://maps.google.com/ | |
Graham 10-Feb-2005 [1067] | perhaps if Charles relinquished his succession claims to the Queen's corgies, the public might find it more acceptable. |
Terry 10-Feb-2005 [1068] | I wonder how the corgies feel about it? |
[unknown: 9] 10-Feb-2005 [1069] | So, is it true that the PM of NZ is XG? |
JaimeVargas 10-Feb-2005 [1070] | Yeksoon. Happy New Chinesse Year. |
Ammon 10-Feb-2005 [1071] | We just love acronyms in this day and time don't we? ;-) |
BrianW 10-Feb-2005 [1072] | I was following the conversation up until XG. No idea who or what XG is. |
[unknown: 9] 10-Feb-2005 [1073] | Athiest. |
Tomc 10-Feb-2005 [1074] | so are Brian and I athiests for not knowing what XG means, or is the PM of NZ an athiest? |
BrianW 10-Feb-2005 [1075] | X-istential G-it? |
Graham 10-Feb-2005 [1076] | I wouldn't worry too much what XG stands for .. we know that Reichart is a little dysgraphic at times. |
BrianW 10-Feb-2005 [1077] | So it *could* be GX? |
Graham 10-Feb-2005 [1078] | could be asking if she wears XS size clothese for all I know :) |
BrianW 10-Feb-2005 [1079] | true |
Andrew 10-Feb-2005 [1080x2] | Who is the PM of NZ? |
Still AM here... | |
BrianW 10-Feb-2005 [1082] | heh |
BrianW 11-Feb-2005 [1083x2] | Dumb question that I've asked before: How do I tell Rebol/View what my browser is? |
So far I've been able to cheat just by creating a symlink called 'netscape' to my firefox executable, but it would be nice to just use the currently open firefox session | |
Graham 11-Feb-2005 [1085] | windows or linux? |
BrianW 11-Feb-2005 [1086] | Linux |
Graham 11-Feb-2005 [1087] | didn't Jamie post some code that shows how to use an existing Firefox session? |
BrianW 11-Feb-2005 [1088] | ... scrolling back ... yes indeed. Must be the brain shrinkage ;-) |
Vincent 11-Feb-2005 [1089] | Brian: browser for Rebol/View >1.2.1 set-browser-path "path/to/firebird -url " for Rebol/View 1.21 (may not work on linux): append clear netscan/def-browser "path/to/firebird -url " |
Terry 11-Feb-2005 [1090] | First earthquake seafloor images back from SOC marine geologists in the Indian Ocean http://www.soc.soton.ac.uk/soc_home2.php?pagetype=news3&idx=223 The collision has forced up spectacular large thrust ridges up to 1500 m high, higher than Ben Nevis. These unstable blocks have collapsed in places, producing large landslides several kilometres across that have scarred the seafloor. |
Louis 12-Feb-2005 [1091] | Has anyone made a utility to download a complete web site? |
Graham 12-Feb-2005 [1092x3] | that's not a very friendly thing to do. |
and if you hit a website that is cgi based...you will be downloading from an infinite space. | |
Having said that, I think Bo has written a utility to spider a website | |
Louis 12-Feb-2005 [1095] | Do you have a link? |
Graham 12-Feb-2005 [1096] | try the library .. |
Louis 12-Feb-2005 [1097] | Don't find it there. Oh well, I've got to log off and get some sleep. I'll look better tomorrow. Thanks, Graham. |
older newer | first last |