Re: [Htmlparser-user] TextNode.getText() problem
Brought to you by:
derrickoswald
|
From: Derrick O. <Der...@Ro...> - 2006-02-01 23:18:59
|
The StringBean does a decode on the text, perhaps that is what you need:
public void visitStringNode (Text string)
{
if (!mIsScript && !mIsStyle)
{
String text = string.getText ();
if (!mIsPre)
{
text = Translate.decode (text);
HuangGehua wrote:
> I parser a html resource file which has some Chinese words.When i use
> TextExtractingVisitor.getExtractedText() method to get the text,the
> Chinese words displays well.But if i get a TextNode and use
> TextNode.getText() method to get the Chinese words it can't displayed
> correctly.
>
> How could let TextNode.getText() method work correctly!!!
> Thank you!!!!
>
|