in reply to Mess with UTF-8, utf8 and raw encoding on live working platform
So, let's get this straight.
You fixed the way you read and write data from and to files, and now the old data which were written in the broken way don't work anymore.
So you need three steps:
For identifying which data is broken, I hope you have some timestamps along with your data, or that you write the rows sequentially, so that you can easily see which rows are "old" and which are "new".
For identifying in which way the data is wrongly encoded, I recommend to look at the data with hexdump -C yourfilename - it gives more reliable information than perl (at least if you don't grok how perl does what it does).
If you have some samples of the broken data and how it should look like, you can also try Encode::Repair. If that module doesn't work for you, I'll be happy to improve it, if you provide enough information.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mess with UTF-8, utf8 and raw encoding on live working platform
by AlfaProject (Beadle) on Jun 02, 2011 at 14:03 UTC | |
by moritz (Cardinal) on Jun 02, 2011 at 14:51 UTC | |
by AlfaProject (Beadle) on Jun 05, 2011 at 07:15 UTC | |
by mje (Curate) on Jun 02, 2011 at 14:35 UTC |