in reply to Unusual output with french accented letters
This is a Mac charset problem. My terminal is UTF-8:
This means that when I take the mangled characters from "Ainsi j‚Äôappelle" and convert them to the traditional Mac charset, the resulting byte sequence interpreted as UTF-8 is an apostrophe. So the reverse must be the case for your file: you are assuming an 8-bit Mac charset but the file is actually UTF-8. Either convert the files by hand using recode or iconv, or use Encode::Guess or similar to detect the encoding on the fly.$ echo -n ‚Äô|recode ..macintosh | xxd 0000000: e280 99 ... $ echo `echo -n ‚Äô|recode ..macintosh` ’
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unusual output with french accented letters
by JHG (Initiate) on May 22, 2012 at 14:35 UTC | |
by mbethke (Hermit) on May 23, 2012 at 14:49 UTC |