by caribousoup · 6y ago · 0 comments
I lost 2 days to troubleshooting weird problems, until less revealed some configs had little droppings of random text sprinkled throughout. I opened them with micro and everything looked fine... then I opened them with nano and I could see and remove the extra characters.
Micro has a great user interface, really. I wish that I could use it, but I don't think it's wise and I will stick with standard nano for quick edits.
I don't remember the details, unfortunately. I think there was a pattern to it, like they were control characters or something. But it silently inserted them, and they were not visible within the editor, but they were visible in nano/less/etc.
Again, this was awhile ago, but I don't think they were single characters, it was a sequence of characters.
Perhaps micro doesn't autodetect encoding? Or you forced it to utf-8?