I am using PERL 5.6 for CGI (Server script).
When a query string containing Korean values is POSTed, the following code gives me the values in ANSI form.
As a result, the I get junk values.
My problem is to read these Korean values properly and not as junk.
[CODE=perl]if ($ENV{'REQUEST_ METHOD'} eq 'POST') {
read(STDIN,$buf ,$ENV{'CONTENT_ LENGTH'});
}
else {
$buf=$ENV{'QUER Y_STRING'};...
User Profile
Collapse
-
Cannot get the korean value that was posted to CGI.
CASE-1: From a CGI window, when I open another CGI window using window.open() and post a korean value [ encoded using Javascript encodeURI() ] through the URL, and then if I read the input using PERL from
STDIN, I dont receive the original Korean string. I see some junk content.
CASE-2: On the other side, if I post the Korean value [ encoded with EUC_KR ] using Java to the same CGI window, I could get my original Korean string... -
Cannot get the korean value that was posted to CGI.
CASE-1: From a CGI window, when I open another CGI window using window.open() and post a korean value [ encoded using Javascript encodeURI() ] through the URL, and then if I read the input using PERL from
STDIN, I dont receive the original Korean string. I see some junk content.
CASE-2: On the other side, if I post the Korean value [ encoded with EUC_KR ] using...Leave a comment:
-
Cannot get the korean value that was posted to CGI
CASE-1: From a CGI window, when I open another CGI window using window.open() and post a korean value [ encoded using Javascript encodeURI() ] through the URL, and then if I read the input using PERL from
STDIN, I dont receive the original Korean string. I see some junk content.
CASE-2: On the other side, if I post the Korean value [ encoded with EUC_KR ] using Java to the same CGI window, I could get my original Korean string...
No activity results to display
Show More
Leave a comment: