Redian新闻
>
how to decode these data from users' input at a web site
avatar
how to decode these data from users' input at a web site# Programming - 葵花宝典
x*d
1
我是工程的,n年前学过C, 平时用的都是matlab, fortran之类的,
现在project需要用到数据库,
要从这两个中选一个 编程,
多谢指点!
avatar
h*p
2
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!
avatar
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++.

【在 x***d 的大作中提到】
: 我是工程的,n年前学过C, 平时用的都是matlab, fortran之类的,
: 现在project需要用到数据库,
: 要从这两个中选一个 编程,
: 多谢指点!

avatar
s*v
4
C# code example
avatar
h*p
5
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!
avatar
r*t
6
%e2%80%93 本来应该是什么?what outcome is expected? 是不是个 url decoding 问
题? 这些 string 是什么 codec?
urllib.unquote('abc%20def')
会得到
'abc def'.
不知道是不是你想要的结果,这个是 python.
avatar
h*p
7
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!
avatar
f*Q
8
提交那人的Accept-Charset和Accept-Language是啥?
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。