Re: Git messes up 'ø' character
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Jan 22, 2015, 09:59 UTC
- Message-ID
- <54C0C9E6.50207@drmicha.warpmail.net>
- In-Reply-To
- <54BED5FF.40107@tronnes.org>
Noralf Trønnes schrieb am 20.01.2015 um 23:26:
Show 30 quoted lines
> Den 20.01.2015 23:18, skrev Nico Williams: >> On Tue, Jan 20, 2015 at 10:38:40PM +0100, Noralf Trønnes wrote: >>> Yes: >>> $ echo Noralf Trønnes | xxd >>> 0000000: 4e6f 7261 6c66 2054 72f8 6e6e 6573 0a Noralf Tr.nnes. >>> >>> Is there a command I can run that shows that I'm using ISO-8859-1 ? >>> I need something to google with, my previous search only gave locale >>> stuff, which seems fine. >> The locale(1) command tells you what your locale is set to, but it >> doesn't say anything about your input method -- it only tells you what >> your shell and commands started from it expect for input and what they >> should produce for output. >> >> The input method will generally be part of your windowing environment, >> for which you'll have to search how to check/configure your OS >> (sometimes it can be set on a per-window basis, sometimes it's a global >> setting). >> >> Even if the windowing environment is set to UTF-8, your terminal >> emulator might be set to ISO-8859-something, so check the terminal >> emulator (e.g., rxvt, Terminator, GNOME Terminal, PuTTY, ...). > > I use putty which was set to ISO-8859-1. Changing this to UTF-8 gave me > the correct result: > $ echo Noralf Trønnes | xxd > 0000000: 4e6f 7261 6c66 2054 72c3 b86e 6e65 730a Noralf Tr..nnes. > > Thank you all for helping me! >
You can also check the encoding of your config file with
file .git/config
or ":set fileencoding" in vim. ":set fileencoding=utf8" would allow you to convert it easily.
(This assumes that the file does not mix encodings.)
Michael