Hi, I have some data which are users' input from a web site. The data have numerals with '%' after them. How can I interprete them? E.g. aeromonas%e3%80%80starch starch%e3%80%80microbe dimer chicken ifn-%ce%b3 Thanks for any help!
a*l
3 楼
suggest you use labview. There are more libraries in labview to use database than c++. labview is easier to make a small program that runs than c++. But for larget scale programs, labview is as hard as c++.
Thanks! I forgot to say, I'm using Perl. I tried using: $theURL = $_; $theURL =~ tr/+/ /; $theURL =~ s/%([a-fA-F0-9]{2,2})/chr(hex($1))/eg; $theURL =~ s///g; But the result doesn't seem reasonable. E.g. string "physiol behav 67: 733%e2%80%93738, 1999" was interpreted as " physiol behav 67: 733â738, 1999". Thanks!
Thanks! I forgot to say, I'm using Perl. I tried using: $theURL = $_; $theURL =~ tr/+/ /; $theURL =~ s/%([a-fA-F0-9]{2,2})/chr(hex($1))/eg; $theURL =~ s///g; But the result doesn't seem reasonable. E.g. string "physiol behav 67: 733%e2%80%93738, 1999" was interpreted as " physiol behav 67: 733â738, 1999". Thanks!