Special characters getting replaced by &Pound in Unix Environment


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Special characters getting replaced by &Pound in Unix Environment
# 1  
Old 09-23-2005
Special characters getting replaced by &Pound in Unix Environment

Hi,
Please find the Question Summary below-

In our email template document(.txt) bullets and Apostrophe are getting replaced by the string "&pound" in our Live environment.We are using sun solaris 8 in live.

Can anybody let me know why this happens and how to prevent this .

Thanks
Kaushik
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

With sed replaced special character is printed twice, why?

Dear all, I was wondering If you could help me out. I Am using a batch script to midfy some text files. Input: 912856 912857 912904Amongst others I use this line: REM I want to replace all lines that start with a 6-digit Number with a ftp command "get" followed by a path and the 6-digit... (9 Replies)
Discussion started by: SIEMI
9 Replies

2. UNIX for Advanced & Expert Users

Need help to delete special characters exists only at the end of the each record in UNIX file?

Hi, I have a file in unix with 15 columns.It consists special characters(#,$,^M,@,*,% etc)at the end of the each record.I want to remove these special characters.I used the following: Sed -e 's/ /g;s/ */ /g' . But It is removing special characters exists everywhere in the file(begining,middle... (24 Replies)
Discussion started by: rakeshp
24 Replies

3. UNIX for Beginners Questions & Answers

To remove any invisible and special characters from the file(exclude @!#$&*)

Hi Guys, My requirement is to remove any invisible and special characters from the file like control M(carriage return) and alt numerics and it should not replace @#!$% abc|xyz|acd¥£ó adc|123| 12áí Please help on this. Thanks Rakesh (1 Reply)
Discussion started by: rakeshp
1 Replies

4. Shell Programming and Scripting

Special Characters BASH/UNIX term support

Trying to run this command: find /Volumes/Archive/ -type f -name "Icon" and get /Volumes/Archive//New Business and Marketing/2010 /Creative/Image Library/Stuff for Sean/Cafe Heineken/logo_Café Heineken_03.jpg: No such file or directory due to the accent on the filename. Is there a way around... (2 Replies)
Discussion started by: kostas123334
2 Replies

5. Shell Programming and Scripting

UNIX Special Characters

Any time I do : ls *.txt > mytext.txt I get something like this in the output file: ^ Tue Jan 22 16:19:19 EST 2013 x86_64 x86_64 x86_64 GNU/Linux t1Fam_BrOv :~>alias | grep ls alias l.='ls -d .* --color=tty' alias lR='ls -R' alias la='ls -Al' alias lc='ls -ltcr' alias ldd='ls -ltr |... (5 Replies)
Discussion started by: genehunter
5 Replies

6. UNIX for Dummies Questions & Answers

Environment Variable with Special characters

Hello all, I am facing with a problem of invoking an environment variable. If I use this command : /bin/ls -lt FILE_NM_?(20120515|20120516)??????_sas.sig | head -n1 | awk '{print $9}' It perfectly outputs the desired result. FILE_NM_20120516000000_sas.sig But if I do this:... (8 Replies)
Discussion started by: sethmj
8 Replies

7. Shell Programming and Scripting

Windows to UNIX FTP Special characters!

I have a file that has the name in one of the lines as MARíA MENDOZA in Windows. When this gets FTPed over to UNIX it appears as MAR�A MENDOZA. Is there anyway to overcome this? Its causing a issue because the file is Postional and fields are getting pushed by 2 digits.. Any help would be... (4 Replies)
Discussion started by: venky338
4 Replies

8. Shell Programming and Scripting

Replace new line with <br /> & escape special characters

Hi, I wish to replace a new line with br (html) but it doesn't seem to work message=$(echo ${FORM_message} | tr '\r' '<br \/>' ) what it gives me seems to be ... b...? I am also having problem escaping hash sign in cut command: list=$(echo "$line" | cut -d'\#;\#' -f1) ; my intention is... (2 Replies)
Discussion started by: ted_chou12
2 Replies

9. Shell Programming and Scripting

Single/Multiple Line with Special characters - Find & Replace in Unix Script

Hi, I am creating a script to do a find and replace single/multiple lines in a file with any number of lines. I have written a logic in a script that reads a reference file say "findrep" and populates two variables $FIND and $REPLACE print $FIND gives Hi How r $u Rahul() Note:... (0 Replies)
Discussion started by: r_sarnayak
0 Replies

10. UNIX for Dummies Questions & Answers

Unix file does not display special characters

We have a unix file that contains special characters (ie. Ñ, °, É, ¿ , £ , ø ). When I try to read this file I get a codepage error and the characters are replaced by the # symbol. How do I keep the special characters from being read? Thanks. Ryan (3 Replies)
Discussion started by: Ryan2786
3 Replies
Login or Register to Ask a Question
mktemp(3)						     Library Functions Manual							 mktemp(3)

NAME
mktemp, mkstemp - Construct a unique file name LIBRARY
Standard C Library (libc.so, libc.a), System V Compatibility Library (libsys5.a) SYNOPSIS
Standard C Library #include <stdlib.h> int mkstemp( char *template); char *mktemp( char *template); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: mktemp(), mkstemp(): XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Points to a string to be replaced with a unique file name. The string in the template parameter must be a file name with six trailing Xs. DESCRIPTION
The mktemp() function replaces the contents of the string pointed to by the template parameter with a unique file name. The application must initialize template to be a file name with six trailing Xs; mktemp() replaces the Xs in the template string with a unique file name. Under libc.a, the file name is a unique combination of the thread name and process ID. Under libsys5.a, the file name is created with the getpid function. The mkstemp() function performs the same substitution to the template name and also returns a file descriptor for the file and opens the file with "owner" reading and writing privileges (0600). The function thus prevents any possible race condition between testing whether the file exists and opening it for use. The mkstemp() function is not available under libsys5.a. RETURN VALUES
Upon successful completion, the mktemp() function returns the address of the string pointed to by the template parameter. If the string pointed to by the template parameter contains no Xs, or if the mktemp() function is unable to construct a unique file name, the first character of the template parameter string is replaced with a null character, and a null pointer is returned. Upon successful completion, the mkstemp() function returns an open file descriptor. If the mkstemp() function fails, it returns a value of -1. ERRORS
No errors are defined for this routine. RELATED INFORMATION
Functions: tmpfile(3), tmpnam(3), getpid(2) Standards: standards(5) delim off mktemp(3)