which codepage I'm using?

how could I check which is the current codepage on my openSuse (11.3)?

I tried with ‘locale’, but I’m a newbie…

regards

Try:

echo $LANG

Is that what you are after?

bongo zg wrote:
> how could I check which is the current codepage on my openSuse (11.3)?

-=welcome=-

what is it you are trying to accomplish? well, what i mean is we here
set our system language and keyboard during install, or afterwards in
YaST…

additionally, many individual programs allow settings to be the same
as, or different from, the system…

tell us about your installed version, desktop environment, and
application you are having trouble with…and describe the
problem…someone can then probably help…

oh, you might notice we don’t often use the term “codepage” and i find
no need for the proprietary “Windows Codepage” that do not conform to
any global standard, as does the openSUSE using UTF-8, ISO-xxxx etc…


DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
Programming: a race between software engineers building bigger/better
idiot-proof programs, and the universe building bigger/better idiots.
So far, the universe is winning. Rick Cook

Linux nowadays uses Unicode encoded as UTF-8. That means that all (yes all and more) characters used in all (yes, even in Klingon) character sets have their own Unicode number. That means that no code pages (which where needed because the same number is used for several characters and one thus has to tell which code page the number belongs to to know what character it stays for) are nornaly used in Linux.

Nevertheless Linux has to cope in some places with software that still uses them. E.g. a web server can use one of the ISO-8859 code pages (or worse, some Windows definition) and it should tste thus (and they mostly do either in the HTML protocol or in the HTML page header) and then your browser has to interprete that (at least for the ISO ones, I am not sure if an open source browser should cope for Windows proprietary codes).

Like the others above I guess you have some problem. Do not be shy and explain your problem. May we can help you.

On 2011-01-02 11:36, bongo zg wrote:
>
> how could I check which is the current codepage on my openSuse (11.3)?

We don’t use codepages.

The traditional character set used in Windows has only 256 different
characters (a byte). That is not enough for all languages, so in windows
you have to choose one set - a codepage.

In linux we use the UTF-8 charset, which allows for 1,112,06 different
symbols. <http://en.wikipedia.org/wiki/Utf-8>

> I tried with ‘locale’, but I’m a newbie…

Yes, locale is the correct command.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

yes, I got:
en_US.UTF-8

yes, I got:
en_US.UTF-8

Then you are using the UTF-8 character set.