Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15396/tags
Modified Files:
MetaTag.java
Log Message:
Fix bug 1322686 when illegal charset specified
Use current source charset as the default if there is already a source.
Index: MetaTag.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/MetaTag.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** MetaTag.java 10 Apr 2005 23:20:45 -0000 1.39
--- MetaTag.java 25 Oct 2005 02:06:46 -0000 1.40
***************
*** 147,151 ****
if ("Content-Type".equalsIgnoreCase (httpEquiv))
{
! charset = Page.getCharset (getAttribute ("CONTENT"));
getPage ().setEncoding (charset);
}
--- 147,151 ----
if ("Content-Type".equalsIgnoreCase (httpEquiv))
{
! charset = getPage ().getCharset (getAttribute ("CONTENT"));
getPage ().setEncoding (charset);
}
|