Problems with Char-encoding - HTML TIDY

Luana Knoff <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
Hi all,

I have some doubts about using HTML Tidy. I need to convert the char-encoding to utf-8 but 

when I do it some strangers characters appear instead of "ç" and "accentuations", like in 

this case: The word: "Serviços" appears as "Servi?os". But if I do the transformation first 

to ascii and after it to utf-8 the strangers characters don't appear. 

The comand lines are:
first I do:

tidy  --char-encoding ascii --tidy-mark no --wrap 99 --output-xml yes --output-xhtml yes 

--output-html yes --doctype omit --numeric-entities yes --quote-marks yes --quote-nbsp yes 

--quote-ampersand yes --logical-emphasis yes --enclose-text yes --alt-text empty 

--write-back yes --quiet yes -m teste_imagem.htm


And then I have to do again:

tidy  --char-encoding utf8 --tidy-mark no --wrap 99 --output-xml yes --output-xhtml yes 

--output-html yes --doctype omit --numeric-entities yes --quote-marks yes --quote-nbsp yes 

--quote-ampersand yes --logical-emphasis yes --enclose-text yes --alt-text empty 

--write-back yes --quiet yes -m teste_imagem.htm

Anyone knows what I have to do to convert the page to utf-8 without have to do the 

transformation twice? 

Any hints are welcome.

Luana 


 		
---------------------------------
 Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.