Sponsored Content
Top Forums Shell Programming and Scripting Email a File from UNIX which has Japanese characters in it Post 302351122 by matrixmadhan on Monday 7th of September 2009 08:16:41 AM
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.
 

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
jprconv(1)							   User Commands							jprconv(1)

NAME
jprconv - Filter for printing Japanese text on a dot-matrix Kanji printer or Japanese language page printer SYNOPSIS
jprconv [-T terminfo] [-r ] /usr/lib/lp/text/jprconv AVAILABILITY
SUNWjfpu DESCRIPTION
jprconv is a filter for printing Japanese text on a dot-matrix Kanji printer (EPSON VP-5085 or NEC PC-PR201) or Japanese language page printer (Canon LASERSHOT). Control codes for each printer are as follows: +-----------------------+-----------------------------------+ |Database |Control code | |EPSON VP-5085 |ESC/P24-J84 of EPSON ESC/P | |NEC PR201 |NEC 201PL | |Canon LASERSHOT |LIPS-complied control code | +-----------------------+-----------------------------------+ If the above control codes are supported, Japanese text can be printed on another printer. jprconv reads Japanese characters from the standard input, converts them to each control code, and writes to the standard output. If the input character code includes any user-defined characters, JIS X 0212, IBM Extended characters, or NEC-selective IBM Extended characters, these fonts are also printed. For the other characters, fonts installed on the printer are used. You can use sdtudctool to define user-specific characters (see sdtudctool(1)). To print JIS X 0212, IBM Extended characters, or NEC-selec- tive IBM Extended characters, the SUNWjcs3f package is also needed. OPTIONS
-T Specifies to use terminfo database. Any one of the following must be spefified. canon-ls-408 In case of LIPS format nec-pr201 In case of NEC 201PL format epson-vp5085 In case of ESC/P24-J84 format -r Does not convert NL to CR-NL when printing. By default it is converted. EXAMPLES
To print file1 in the ESC/P24-J84 format, type: example% jprconv -T epson-vp5085 < file1 ENVIRONMENT VARIABLES
To run this command, the locale must be set to ja, ja_JP.PCK or ja_JP.UTF-8. FILES
/usr/lib/lp/text/jprconv.conf /usr/share/lib/terminfo/e/epson-vp5085 /usr/share/lib/terminfo/n/nec-pr201 /usr/share/lib/terminfo/c/canon-ls-a408 SEE ALSO
jtops(1), jpostprint(1), sdtudctool(1), lpfilter(1M) Japanese Environment User's Guide NOTES
In general, it is not necessary to use the jprconv because jprconv is used as a filter on the printer server side. For the setting on the printer server side, see Japanese Environment User's Guide. Only Japanese characters are printable in the ja_JP.UTF-8 locale. SunOS 5.10 10 Jan 2003 jprconv(1)
All times are GMT -4. The time now is 06:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy