Forum Discussion
So I followed suggested steps except the last one
"- also, you may need to manually delete the byte order mark at the beginning of the file (BOM) (sorry I don't remember if this was required); I think I may have had to delete some double BOM's using HxD where there was both UTF-8 and UTF-16 BOM's. Deleting both should reset the encoding to ANSI as default."
I see some statements converted back to English but i lost some as well. I Have attched file comparison of before and after Hex replacements.
Any hint whats missing here ?
Yes, I think I know what the problem is. Our starting points are different -- it is most likely that your corrupted file encoding is different than what mine was.
Mine was UTF-16 (LE). (LE = Little Endian). See attached file for sample (yellow highlighting indicates encoding).
If you look at the first 2 or 3 bytes of your original corrupted file in HxD, it's probably either UTF-8 (hex=EF BB BF), or UTF-16 (BE) (hex=FE FF). It's possible, but very unlikely, that you have one of the other 5 UTF encoding types.
From my screenshot, and for my encoding type, the actual Find/Replace values should have been to find "0D 00 0D 0A 00" and replace with it with "0D 00 0A 00". (sorry, in my original post, it worked for me, but was not 100% accurate because it was offset by 1 byte). Please compare both screenshots to see the Find/Replace difference.
However, based on your encoding, it will probably require a slightly different treatment. But without seeing the hex values, I can't tell you what the Find/Replace values should be.
So I would suggest to post a screenshot of the first few lines of your original corrupted file in HxD, or the original file itself (but be careful of propritary content as this is a public forum). Then I can tell you what the Find/Replace should be for your files.
Regards,
Brian
- mspatel10 years agoContributor
Hi
Since i Messed around with the file i posted earlier , Here is another file that was corrupted.
- brk939410 years agoOccasional Contributor
The BOM looks fine in your file. I'm pretty sure that a find / replace the hex values "0D 00 0D 0A 00" with "0D 00 0A 00" should do the trick for you. Good luck.
Related Content
- 5 years ago
Recent Discussions
- 38 minutes ago