JTidy Status and I18N support

Please excuse me if this is the inappropriate forum but
may I ask whether JTidy is being maintained? (There seem
to be many more features in HmtlTidy, and the last release
of JTidy was more than 18 months ago). 

I'm currently using JTidy and am very impressed with it,
and will try to use it even if it no longer being maintained.
However, I worry about its i18n support. Using the following
static method, I tried to parse a known UTF8 String (containing
Asian characters) and JTidy returned an empty string,

public static String parse(String s, String encoding) {
        try {
            ByteArrayInputStream bis = new ByteArrayInputStream(s.getBytes(encoding));
            Tidy tidy = new Tidy();
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            tidy.parse(bis, bos);
            return bos.toString(encoding);
        }
        catch (java.io.UnsupportedEncodingException e) {
            System.out.println("oops " + e.getMessage());
            return s;
        }
    }

Should JTidy be fully i18n aware? 

Thank you and apologies for my ignorance,

Stephen.




---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

Received on Thursday, 6 February 2003 07:18:40 UTC