[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: UTF-8 encoding of changelog files

lsorense@csclub.uwaterloo.ca (Lennart Sorensen) writes:

> So is this valid utf-8?  I don't believe so.  If it is I have to go
> reread the UTF-8 spec again. :)
> 4b c4 99 73 74 75 74 69 73     (K..stutis)
> (I found this one in base-config from sarge since I happened to have
> that one open in a hex editor for checking).

That's trivial to check. Just feed it to recode and specify UTF-8
Hexadecimal input:

| $ echo 0x4b, 0xc4, 0x99, 0x73, 0x74, 0x75, 0x74, 0x69, 0x73 | recode utf-8/x..
| Kęstutis

To check a changelog, just do 'recode utf-8.. < changelog', which will
try to convert from UTF-8 to the current locale charset.

"A disappointingly low fraction of the human race is,
 at any given time, on fire." - Stig Sandbeck Mathisen

Reply to: