Operating System - Linux
1833053 Members
2168 Online
110049 Solutions
New Discussion

default ecoding and character set

 
SOLVED
Go to solution
Arturo Galbiati
Esteemed Contributor

default ecoding and character set

Hi Gurus,
10 point to win!

I need to know the defaut ecoding type and the character set of my server HP-UX 11.11.
How can see info about these topics and about convertions between ecoding types, characters set?

TIA,
Art
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: default ecoding and character set

Hi:

# locale

Start with the manpages for 'locale(1)'. Follow the "See Also" manpage suggestions at the end, too :-)

Regards!

...JRF...
Peter Godron
Honored Contributor

Re: default ecoding and character set

Art,
#locale LC_CTYPE
should give you default char set
Arunvijai_4
Honored Contributor

Re: default ecoding and character set

Hi Art,


You can find more information from # man locale.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arturo Galbiati
Esteemed Contributor

Re: default ecoding and character set

Hi JRF,
this is the output of locale -A on my server:
locale -A
32-bit locales are:
C
POSIX
C.iso88591
C.iso885915
C.utf8
univ.utf8

64-bit locales are:
C
POSIX
C.iso88591
C.iso885915
C.utf8
univ.utf8

what are teh enconding type and the character set?

Arunvijai_4
Honored Contributor

Re: default ecoding and character set

Hi Art,

You are having ISO 8859-1 encoding.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
James R. Ferguson
Acclaimed Contributor
Solution

Re: default ecoding and character set

Hi (again) Art:

If you simply do 'locale' you will see yuor current values. For instance, my LC_TIME is:

LC_TIME="C"

If I do 'locale -a' I will see all of the locales available for choice. For instance:

# date
Thu Mar 2 09:44:53 EST 2006
# LC_TIME=de_DE.iso88591 date
Do., 02. März 2006, 09:45:06

In the second command I set the locale (temporarily) to a German one since it was one choice available to me.

As for character sets, you need to look at the other manpages I mentioned, such as 'localedef(1M), 'charmap(4)' and 'environ(5)' among others.

Regards!

...JRF...
Arturo Galbiati
Esteemed Contributor

Re: default ecoding and character set

thanks JRF