Autor Beitrag
Rool
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 211



BeitragVerfasst: Sa 28.06.03 20:37 
Ich will eine Seite aufrufen und ihr Parameter in Form von ?wert=hallo übergeben. der wert variiert jedoch (Benutzereingabe). D.h. er kann auch Leerzeichen usw. enthalten. Jetzt will ich ihn konvertieren in die Form fürs Internet:
" -> %22
(Leer) -> +

usw. gibt es da irgendeine Methode in der Shell oder so???

_________________
MFG Rool
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Sa 28.06.03 20:40 
ich fürchte du must das selber machen, dürfte aber nicht weiter schwer sein. Du musst halt ersetzen und zwar ' ' durch '+' und die anderen jeweils durch ihren Hexwert soweit ich weiß (?_?) also zb " durch IntToHex(ord('"'))

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
Rool Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 211



BeitragVerfasst: Sa 28.06.03 21:13 
Titel: ..
warum funktioniert das hier eigentlich nicht??? es kommt das gleiche wie vorher raus!

StringReplace(str,' ','+',[rfReplaceAll]);

_________________
MFG Rool
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Sa 28.06.03 21:46 
str := StringReplace(str,' ','+',[rfReplaceAll]);

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
Rool Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 211



BeitragVerfasst: Sa 28.06.03 22:14 
Titel: ...
ich bin ja SOOOOOOOOO ein Idiot!!! :autsch:
Danke!

_________________
MFG Rool