getCharset Method test sample