git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git messes up 'ø' character

From
NTNoralf Trønnes <notro@tronnes.org>
Date
Jan 20, 2015, 22:26 UTC
Message-ID
<54BED5FF.40107@tronnes.org>
In-Reply-To
<20150120221802.GJ2350@localhost>
Den 20.01.2015 23:18, skrev Nico Williams:
Show 21 quoted lines
> 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!
Previous: Nico WilliamsNext: Michael J Gruber
Message 13 of 14 in “Git messes up 'ø' character”
  1. Noralf TrønnesJan 20, 2015
  2. Torsten BögershausenJan 20, 2015
  3. Noralf TrønnesJan 20, 2015
  4. Ævar Arnfjörð BjarmasonJan 20, 2015
  5. Greg Kroah-HartmanJan 20, 2015
  6. Jeff KingJan 20, 2015
  7. Ævar Arnfjörð BjarmasonJan 20, 2015
  8. Noralf TrønnesJan 20, 2015
  9. Ævar Arnfjörð BjarmasonJan 20, 2015
  10. Noralf TrønnesJan 20, 2015
  11. Ævar Arnfjörð BjarmasonJan 20, 2015
  12. Nico WilliamsJan 20, 2015
  13. Noralf TrønnesJan 20, 2015
  14. Michael J GruberJan 22, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.