Douglas 1 Jones wrote:
Hello,
I'm wondering if anyone knows of a filter that can take data to be wrapped in
XML tags and filter this data encoding any illegal XML characters or, if they
cannot be encoded, remove them. The problem I have is a database that contains
text that must be wrapped in
Perhaps I am misunderstanding your problem, so let me ask it another
way. Is the problem that you are getting characters entered into the
database that are encoded in one way (e.g. UTF-8) when you expected the
characters to be encoded in another way (e.g. ISO-8859-1)?
No, the problem involves
Jones, Douglas 1 wrote:
I think that a function just like htmlentities but one
that just removes characters that are illegal but can not
be fixed would be the ideal solution.
How do you define what can and cannot be fixed, though? You'd have to
know the bad characters and in that case, a
3 matches
Mail list logo