Visit Our UNIX and Linux User Community


Email a File from UNIX which has Japanese characters in it


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Email a File from UNIX which has Japanese characters in it
# 1  
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)
# 2  
Old 09-07-2009
Does your Windows box have Japanese fonts enabled? You might want to check that.
Are the characters coming up like rectangular boxes? If thats the case, I guess you need Japanese fonts on your Windows machine.
# 3  
Old 09-07-2009
Yes, my windows machine does have Japanese fonts and they are enabled.
I even switched the Langauage to Japanese.

My guess is it's an encoding issue with eucjis/sjis charset not being set for the attachment when i'm using uuencode.
# 4  
Old 09-07-2009
Quote:
Originally Posted by jainkirti
Yes, my windows machine does have Japanese fonts and they are enabled.
I even switched the Langauage to Japanese.

My guess is it's an encoding issue with eucjis/sjis charset not being set for the attachment when i'm using uuencode.
from man uuencode
Quote:
The encoding uses only print-
ing ASCII characters and includes the mode of the file and the operand
name
I guess there is a problem with this.

Try, the -base64 option and before try printing it in stdout with term set to utf8 to see its encoding/transferring what we are really interested.
# 5  
Old 09-07-2009
I'm not able to use base64 option for uuencode.

when i do a man, it says :
SYNOPSIS
uuencode [ source-file ] decode_pathname

do you know how to specify the base64 encoding option to the uuencode command ?
Thanks,

Previous Thread | Next Thread
Test Your Knowledge in Computers #101
Difficulty: Easy
Linux is fundamentally a UNIX clone written from scratch by Linus Torvalds with the help of many coders across the globe.
True or False?

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

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

Featured Tech Videos