Anyone else dealing with hidden Unicode characters in AI generated text?
Hi everyone,
I've been working with AI generated content quite a bit lately, and I've noticed something strange. Sometimes text copied from ChatGPT or other LLMs looks perfectly fine, but after pasting it into an editor or IDE, I run into odd formatting issues.
Some of the problems I've seen include:
- Unexpected spacing
- Invisible characters that affect parsing
- Search and replace not working as expected
- Formatting differences between editors and operating systems
I'm curious how other developers handle this. Do you have a preferred way to normalize Unicode before using AI generated text in your projects?
I recently found an online Unicode normalizer that removes hidden Unicode characters while keeping the visible text unchanged. It has been useful for cleaning AI generated content before using it in documentation or source files.
Are there any open source libraries or command line tools you would recommend instead? I'd love to hear what has worked best for your workflow.
