S
S
Shing2015-01-21 03:00:09
Programming
Shing, 2015-01-21 03:00:09

How to remove invalid UTF characters from a file?

Presumably, there are invalid utf characters in the file that prevent importing xml into WordPress.
When importing, wordpress does not convert mnemonics (html tags in xml in mnemonics) into html code, they say that it is possible due to invalid characters in the content.
How to clean up? Maybe software or..?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CycaHuH, 2015-01-21
@CycaHuH

Under Linux, iconv can skip invalid characters
iconv -cf utf8 < /path/to/xml

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question