Sponsored Content
Top Forums Shell Programming and Scripting Email a File from UNIX which has Japanese characters in it Post 302351019 by jainkirti on Monday 7th of September 2009 12:15:53 AM
Old 09-07-2009
Email a File from UNIX which has Japanese characters in it

Hi,

I'm trying to email from UNIX, a file which has Japanese characters in it (i,e. in the contents -- not the filename).
The file gets emailed, but the Japanese characters do not show up properly when I open the file on Windows in my Outlook mailbox.

I searched a lot of forums but still not able to figure out how to do this..

This is the command I am using :
uuencode test.txt text1.txt | mailx -s "This is a test mail" abc@abc.com

e.g. The File has the content as below :
,外国債(SWAP)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Identifying invisible characters in Unix file

I have a file, which when you look at it, appears as if it has spaces.... But sometimes, it is has tab or Nulls or some other character which we are not able to see..... How to find what character exactly it is in the file, where ever we are seeing a space... (Iam in solaris)... (1 Reply)
Discussion started by: thanuman
1 Replies

2. 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

3. AIX

Japanese in Unix

Hi, I have a PPD(Postscript printer description) file which is in Japanese. I want to use the PPD file in AIX. Is it possible where should i set the Lang. and is it possible to type in Japanese language. Please help. (3 Replies)
Discussion started by: meeraramanathan
3 Replies

4. Shell Programming and Scripting

UNIX file attachment in email

Hi, I have a syntax for mail attachment as $EMAIL "Wrapper $wrapper_script_name has failed" " $wrapper_script_name has Failed " $failed_email_address and $EMAIL is as below MSGSub=${1} MSGText=${2} RMAIL=${3} #set LANG='' export LANG='' echo "${MSGSub}" | mailx -s "${MSGText}" ... (1 Reply)
Discussion started by: satgur
1 Replies

5. Shell Programming and Scripting

Detect lines beginning with double-byte characters (Japanese) and delete

Greetings, I want to use a script (preferably awk) which determines if the first character in a line is double-byte (as in Japanese or Chinese) and deletes it. For example: (in the above quote, I see Japanese on my screen for two lines - with 2 characters in the first and 3 characters in the... (8 Replies)
Discussion started by: ubbeauty
8 Replies

6. Solaris

Japanese and Hindi test want to insert on file on Solaris 10

Hello All, I have a solaris 10 sparc machine . I have installed all the locale . hi_IN.UTF-8. and similarly for japanese. But when i am trying to insert Hindi test in a file using vi . Every thing is getting turned in dots . Can any one help in this .I have configured the LANG and... (14 Replies)
Discussion started by: Arif29march
14 Replies

7. Shell Programming and Scripting

Unix Script file to Append Characters before rows in file.

Hi Experts, I am working on HP-UX. I am new to shell scripting. I would like to have a shell script which will prefix: 1. "H|" before first row of my file and, 2. "T" for all other rows of the file. For Example - File before running the script 20100430|4123451810|218.50|TC 20100430 ... (4 Replies)
Discussion started by: phani333
4 Replies

8. Shell Programming and Scripting

Removing Non-printable characters in unix file

Hi, We have a non printable character "®" in our file , we want to remove this character, we tried tr -dc '' < oldfile> newfile but this command is removing all new line entries along with the non printable character and all the records are coming in one line(it is changing the format of the... (2 Replies)
Discussion started by: pyaranoid
2 Replies

9. Red Hat

How to display Chinese and Japanese Characters on Rhel 6?

Hello, I'm trying to figure out how to display Chinese and Japanese Characters on my RHEL 6 Console. There is no more "bogl-bterm" for RHEL6, that is not supported anymore. Is there any way that I could display them? Thank you. (2 Replies)
Discussion started by: pjeedu2247
2 Replies

10. SuSE

Display Chinese and Japanese characters on my SLES console.

Hello, I'm trying to figure out how to display Chinese and Japanese Characters on my SLES 11 Console. Is there any way that I could display those characters on my console? Thank you. (3 Replies)
Discussion started by: pjeedu2247
3 Replies
jtops(1)							   User Commands							  jtops(1)

NAME
jtops - postscript filter for printing Japanese characters on Sun Laser Writer or Japanese postscript printer SYNOPSIS
jtops [-12rRjJvwWmg] [-ln] [-s size] [-f font] [filename...] AVAILABILITY
SUNWjfpu DESCRIPTION
jtops is a filter for converting Japanese characters to Japanese postscript output which uses Kanji font on a printer side. Input from stdin is converted and sent to stdout. If there is no filename, the standard input is read. By default, it forms font size 10 and 66 lines per page for the portrait form. Before checking options specified in command lines, it interprets the strings in the JTOPS environment variable as options. OPTIONS
-1 1 column output (by default). -2 2 columns output. -r Rotate for the landscape form. -R Output in the portrait form (by default). -v Use Kanji-fonts of printer (for the Japanese PostScript printer by default). -l n Specify the number of lines per page as n (by default 66). -m Use Ming style as Japanese fonts (by default). -g Use Gothic style as Japanese fonts. As alphabetic fonts use Courier-Bold style unless -f option is specified. -f font Specify alphabetic fonts in font. By default, use Courier style without -g option, otherwise Courier-Bold style. -s size Set font size to size. When the fontsize is specified with -s, the lines per page are calculated as follows: portrait: 720 / (fontsize + 1) landscape: 550 / (fontsize + 1) -j Use half size alphanumeric of Japanese fonts as alphanumeric fonts. -J Use Courier as alphanumeric fonts( by default). -W Control the ratio of alphanumeric character and Japanese to be 1:2, except changeable width of alphanumeric fonts( by default). -w Not control the ratio of alphanumeric character and Japanese. EXAMPLES
Example 1: example% jtops -j -l40 -s11 filename | lpr example% pr -l120 filename | jtops -l120 -s5 | lpr example% jtops -2r filename | lpr ENVIRONMENT VARIABLES
The locale has to be set to ja, ja_JP.eucJP, ja_JP.PCK, or ja_JP.UTF-8 in your environment. SEE ALSO
expand(1), lp(1), pr(1), lpr(1B), lpfilter(1M) NOTES
jtops supports the following character sets; o JIS X 0201 figure character set for Roman o JIS X 0201 figure character set for Katakana o JIS X 0208 SunOS 5.10 13 Sep 2002 jtops(1)
All times are GMT -4. The time now is 12:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy