Gossamer Forum
Home : Products : Gossamer Links : Discussions :

help decode

Quote Reply
help decode
I want to change any added,modified and queried character into specific code that I define so that I can search any two bite characters include "5c" code.

If it's not object oriented way, it goes something like "sub decode" below.
And I have no idea how I can incorporate it to LinksSQL.

Any idea please!


sub decode {



require 'jcode.pl';
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("c", hex($1))/eg;

&jcode'convert(*value,'sjis');
$FORM{$name} = $value;

}







Thanks[/quote]### Moto ###
Subject Author Views Date
Post help decode Moto 1477 Oct 16, 2002, 7:56 AM