Looks like this is pretty much the solution for me too...
I'm running my files through this:
while (<>) {
s/\xc3\xa5/å/g;
s/\xc3\xb8/ø/g;
s/\xc3\xa6/æ/g;
s/\xc3\xa9/é/g;
s/\xc3\x85/Å/g;
s/\xc3\x86/Æ/g;
s/\xc3\x98/Ø/g;
s/\xc3\x96/Ö/g;
print;
}
I have been able to get a hexdump of the files, but I really don't understand what I read, because it looks as there are other characters inserted between those hex characters, e.g.:
6469 c320 7396 6c74
c3 is the à and 96 is indeed not in Latin1.... I think the latter probably has something to do with the question marks I got.
Why this is so, or if it is significant is beyond me, and unfortunately, the pressure on me is such I won't have time to find out (hate that). But it works reasonably well.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.