Re: linux keyboard encoding compatibility problem



On 14 Dec 2005 03:54:42 -0800, hultsfret
<no_one_reads_it@xxxxxxx> wrote:
> Hi,
> I'm using a fedora 3 system to log in on an old redhat server. I notice
> that the encodings don't match that is: Backspace is interpreted as C-h
> causing some a lot of trouble, and any system output containing special
> symbols (german umlauts for example) will be displayed as other
> symbols.
> I got also a big problem related to this when importing an mysql
> database that was dumped on an computer with different encoding,
> because all strings containing special symbols are corrupted.
> How can I find out which coding system I'm using? And how can I assure
> compatibility between both systems?
>
Use the "locale" command to see which locale you are using. Most modern
Linux systems use UTF-8 encoding by default, while older systems may use
ISO-8859-1 or other encodings depending on the language. You can
convert text files from one encoding to another with recode or iconv.


--
aphorism, n.:
A concise, clever statement.
afterism, n.:
A concise, clever statement you don't think of until too late.
.



Relevant Pages

  • Re: multibyte in C locale
    ... Multi-byte characters have been included in C since ... "C" locale in the past, ... So having a single encoding doesn't buy you ...
    (comp.std.c)
  • Re: UTF8: cgi ist staerker als ich
    ... use locale ist sogar äusserst gefährlich und unberechenbar. ... Also vergiss Locales und verwende den Unicode-Support von Perl. ... ist dass Du nicht 256 verschiedene Zeichen ... Beim encode kodierst Du Zeichen entsprechend einem bestimmten Encoding ...
    (de.comp.lang.perl.cgi)
  • Re: wchar_t is useless
    ... So it's obvious here that a wchar_t does not have an encoding. ... it's a "coded character set".) ... dependent on the precise definition of the locale. ... The standard library functions, and wide string literals, are what ...
    (comp.lang.c)
  • Re: wchar_t is useless
    ... So it's obvious here that a wchar_t does not have an encoding. ... the native environment locale until you explicitly call setlocale ... So for instance, suppose you have the character 野 in a literal, perhaps as a ... The user is in a Shift-JIS locale, and inputs a string which contains ...
    (comp.lang.c)
  • Re: UTF8: cgi ist staerker als ich
    ... use encoding "utf8" ... use locale ist sogar äusserst gefährlich und unberechenbar. ... dass Latin-1 weder hebräische noch kyrillische ... hab' ich schon festgestellt - wenn ich die cgi header auf utf-8 ...
    (de.comp.lang.perl.cgi)