Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't parse the form when user subimt with cirillic font

Status
Not open for further replies.

skyglider

Programmer
Jul 9, 2000
4
BG
Here is what i use:
this
<head>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1251&quot;>
</head>
AND here is that part of script which handle
keys and value from the form

foreach $pair(@pairs){
($key,$value)= split (/=/,$pair);
$key=~tr /+/ /;
$key=~s/%([a-fA-F0-9][a-fA-F0-9])/pack(&quot;C&quot;),hex($1)/eg;
$value=~tr /+/ /;
$value=~s /%([a-fA-F0-9][a-fA-F0-9])/pack(&quot;C&quot;),hex($1)/eg;
$value=~s/<!-(.|\n)*->//g;
if ($formdata{$key}){
$formdata{$key} .=&quot;, $value&quot;;

and the result i get is
user sumit (à á â )
I get 224 225 226
I think it is decimal;

thanks very much in advance [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top