Solaris OS (missing character " ¤ ")


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris OS (missing character " ¤ ")
# 1  
Old 10-04-2008
Solaris OS (missing character " ¤ ")

Hi All, i have problem displaying special character '¤' on unix prompt on solaris OS.

Whenever i tried to cut and paste the ¤ character into unix prompt, it changed to '$' character.

Please advice what could be the cause.

Thanks in advance.
# 2  
Old 10-04-2008
Sounds like you are cutting it from an 8-bit ISO-8859-1 environment and pasting it into a 7-bit US-ASCII environment. If you are using bash it has a flag to not strip the 8th bit from input commands (readline directives convert-meta, input-meta, and output-meta) but I would have guessed it would default to 8-bit-clean operation in this day and age.
# 3  
Old 10-04-2008
Hello, thanks for your reply.

May i know if there is any unix environment can be set to allow display of the special character ? or any unix config file to be changed ?

We have this problem for long time and until now, there is no solution yet.

Please advice.

Thanks in advance.
# 4  
Old 10-05-2008
What terminal emulator are you using ?
It needs to be configured to use a character set that supports that specific non ASCII character. Then your tty must not strip the eitht bit and finally your shell must not do the same as era already stated.
# 5  
Old 10-05-2008
Hi jlliagre, i am using putty terminal client. In fact, we have 2 servers here, one server can display the special character properly without any problem, but the other server not able to display it and it translate into $ sign.

Both server are using same SHELL which is SH SHELL. I tried to changed to BASH but under BASH SHELL, the special character will translate into empty space.

Please advice.
# 6  
Old 10-05-2008
Sorry, under BASH shell, i am able to display that special char.

$ env|grep SHELL
SHELL=/sbin/sh
$ bash
bash-3.00$ set colsep ¤

But under normal sh SHELL, the following is the output :

bash-3.00$ sh
$ set colsep $

The special char ¤ converted into $ under SH shell.

Please advice how to workaround this if we want it to work under SH shell.

Thanks in advance.
# 7  
Old 10-05-2008
Btw, how can we know what characterset the OS is currently using ?

I am using same putty terminal client to connect to both the servers, one server can display special character and the other cannot.

Both the servers are using SH shell.

Could it be the characterset / locale different ?

I am not so familiar with unix. Pls help..

Thanks in advance.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Solaris

Printer configuration Migration from Solaris 10 "LP" to Solaris 11 "CUPS"

Need to find a way to import an LP printers.conf file to CUPS. I have some new Solaris 11.1 boxes that need to have 300 printers added. (0 Replies)
Discussion started by: os2mac
0 Replies

3. Solaris

missing "nisdomainobject.schema" openldap on solaris 10

Hello I am setting the following openladp on solaris 10 (amd64 8/11), i have Berkeley DB installed (db-4.4.20.tar.gz) and openldap (2.4.26). All is going quite well however i don't have "nisdomainobject.schema" for solaris, i know you could download this at one point. Does anyone have a copy... (0 Replies)
Discussion started by: Carlt23
0 Replies

4. Shell Programming and Scripting

Using sed to find text between a "string " and character ","

Hello everyone Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
Discussion started by: haggismn
10 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

7. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

9. Solaris

Solaris escape my script from "-" to "/226"

Hello everyone. I beg your guys pardon please. I try to ls -al in many path/directories. So, I put the code in text file which look like below; ls -al / ls -al /etc ls -al /etc/default ... however, when I paste it to Solaris over SecureCRT, it seems the code was escaped from "-" to... (0 Replies)
Discussion started by: Smith
0 Replies

10. Shell Programming and Scripting

removing the "\" and "\n" character using sed or tr

Hi All, I'm trying to write a ksh script to parse a file. When the "\" character is encountered, it should be removed and the next line should be concatenated with the current line. For example... this is a test line #1\ should be concatenated with line #2\ and line number 3 when this... (3 Replies)
Discussion started by: newbie_coder
3 Replies
Login or Register to Ask a Question