P
P
programmer01012018-03-12 19:56:34
linux
programmer0101, 2018-03-12 19:56:34

There is a Chinese site with GBK encoding, I get its HTML code, but I can't parse it, because there is some broken character in it?

In PHP: iconv doesn't help, writes "illegal character in input string" and mb messes up encoding.
How can this be implemented on Linux?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-03-12
@demon416nds

iconv has options
including skipping broken characters

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question