Wednesday, April 8, 2009

Disable Translating Chinese Character into Character Entities in Tidy and Xmllint

For Tidy, set char-encoding to raw. The following text is my setting.

tidy -q --char-encoding raw -indent --show-warnings n --tidy-mark n -w 80

For xmllint, set encode to UTF-8 (The encoding of my XML files is UTF-8). Here is my xmllint setting.
xmllint --encode UTF-8 --format

No comments: