nahsra / antisamy

a library for performing fast, configurable cleansing of HTML coming from untrusted sources
BSD 3-Clause "New" or "Revised" License
186 stars 89 forks source link

When my runtime environment is a Chinese encoding environment, the list of error messages returned is garbled #456

Open GodMeowIceSun opened 3 months ago

GodMeowIceSun commented 3 months ago

input

image

critical code

image

result

image

individual opinion

There is a problem with different character sets, so I think the output content of the default character set should be provided.

GodMeowIceSun commented 3 months ago

This issue occurs when I use dependencies in Maven, but it no longer exists after I compile locally

GodMeowIceSun commented 3 months ago

No, it's not that there's no problem with local compilation, but rather that getErrorMessages has been called multiple times

GodMeowIceSun commented 3 months ago

After applying changes and compiling locally, There's no garbled code left.

result

image