I think I have the latest version as I picked it up from the site.
Actually, after doing a little digging, I found that mod_proxy_html by
way of mod_xml2enc parses the html and, ultimately, puts it back
together again. At the time of parsing, it replaces with 0xc2
0xca or something like that.
In the mod_proxy_html.c, you have this code.
static void pcharacters(void* ctxt, const xmlChar *uchars, int length) {
const char* chars = (const char*) uchars;
saxctxt* ctx = (saxctxt*) ctxt ;
int i ;
int begin ;
for ( begin=i=0; i<length; i++ ) {
switch (chars[i]) {
case '&' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, "&") ; break ;
case '<' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, "<") ; break ;
case '>' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, ">") ; break ;
case '"' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, """) ; break ;
default : break ;
}
}
FLUSH ;
}
I suppose I need to add a line for , but it has been a long time
since I coded in c and I don't know how to handle utf-8 characters.
If you could help I would appreciate it.
Thanks,
On Mon, Jan 23, 2012 at 6:42 PM, Igor Cicimov <icicimov@xxxxxxxxx> wrote:
> Which version? If it is the newest one have you loaded mod_xml2enc too?
>
> Did you look for answer on the module web site?
> http://apache.webthing.com/mod_proxy_html/config.html
>
> Igor
>
> On Tue, Jan 24, 2012 at 10:29 AM, Roman Gelfand <rgelfand2@xxxxxxxxx> wrote:
>>
>> I am using this module to rewrite the contents of html documents. It
>> appears that it strips which causes me all kinds of grief with
>> IE. Looking, briefly, at mod_proxy_html.c, I couldn't find reference
>> to . Unless, it is a setting in mod_proxy_html config file?
>>
>> Any suggestions are appreciated
>>
>> Thanks in advance
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>> " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx