--- parser3/src/main/pa_http.C 2009/11/09 00:32:05 1.45 +++ parser3/src/main/pa_http.C 2010/08/10 05:27:46 1.47 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_HTTP_C="$Date: 2009/11/09 00:32:05 $"; +static const char * const IDENT_HTTP_C="$Date: 2010/08/10 05:27:46 $"; #include "pa_http.h" #include "pa_common.h" @@ -577,9 +577,7 @@ File_read_http_result pa_internal_file_r } if(valid_options!=options->count()) - throw Exception(PARSER_RUNTIME, - 0, - INVALID_OPTION_PASSED); + throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION); } if(!asked_remote_charset) // defaulting to $request:charset asked_remote_charset=&(r.charsets).source(); @@ -825,6 +823,8 @@ File_read_http_result pa_internal_file_r // skip UTF-8 signature (BOM code) raw_body+=3; raw_body_size-=3; + if(!real_remote_charset) + real_remote_charset=&UTF8_charset; } // output response