04-18-2009
Unix character set problem
Hi All,
We are getting file into our unix box with multibyte characters. When we tried to view the file the record looks like this
Frédéric
Actually the data sent to us is
Frédéric
--> my locale charmap of unix is set to UTF8 only ... but still i am getting this problem.
I created the same record in windows desktop and ftp ed the file to unix server. File looks fine when ftp ed.
We thought error might be during writing the file to unix from other source. Then source sender send the data along with ascii characters of that file.
so the file looks like this...
Frédéric
70 114 233 100 233 114 105 99 <-- ascii values for above record
Ascii values are coming correctly but data looks different...
Help me out on this...
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
We have problems with the latin 2 Character-set with xterm.
We have installed SunRay-Server with Solaris 8. Our Thinclients use hu- and cz-keyboards. I have set the right local-settings and xmodemaps. If I use the dtterm all is running fine. As soon as I use the xterm, it cannot display... (0 Replies)
Discussion started by: paho
0 Replies
2. Programming
hi ,
i am trying to work on a script that transforms some special Dutch characters and send them to a Xerox printer ..
the problem is that while doing so iam unable to identify th correct character set that is used by solaris , to transfer these characcters to Xerox character set .
thanks... (2 Replies)
Discussion started by: ppass
2 Replies
3. UNIX for Advanced & Expert Users
I am forced to use the ANSEL character set for some GEDCOM documents but must convert them to a more modern set for another app which doesn't recognize ANSEL. I am unable to locate an ISO code for ANSEL in a search of the web. Would someone plese identify the ANSEL character set from the list given... (4 Replies)
Discussion started by: Whiterock
4 Replies
4. Programming
Hi,
Could anybody explain how to change the character set of a particular string in C in unix. we are using HP-UX as OS. We require to change the input string which is in cp1250 format to utf-8.
A sample code would help. Thnx in advance (1 Reply)
Discussion started by: gucho
1 Replies
5. Solaris
dears
i am using solaris 10
i am facing a problem when i make setup for solaris i choose the country egypt and i select the language north america
but i forget to do that the i found the date Jun written in arabic
i want to change character set to written in english
-rw-r--r-- 1 root ... (4 Replies)
Discussion started by: hosney00ux
4 Replies
6. UNIX for Advanced & Expert Users
I thought I would point this out. This has a lot of the non printing characters.
ASCII Character Set (7 Replies)
Discussion started by: cokedude
7 Replies
7. Shell Programming and Scripting
Hi All,
"Please read the below information carefully."
i have tried the below code for counting the number of lines present in text file ignoring blank lines
#! /bin/bash
clear
rdCount=0;
while read myline
do
if ; then
echo "line is empty"
else
echo $myline
let... (10 Replies)
Discussion started by: aish11
10 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I'm trying to edit a file with vi, but all special characters (áéíóú etc) don't seem to show correctly. They don't seem to be supported by the OS (SunOS 5.10).
I'm using MobaXterm as the terminal emulator, which is configured to use ISO-8859-1. The same charset is used on Solaris.
If I open... (4 Replies)
Discussion started by: Subbeh
4 Replies
9. Shell Programming and Scripting
Hello,
I created the following (snippet from larger code):
echo -n "A1: "
read A1
VERIFY=$(echo -n $A1|wc -c)
if ; then
echo -e "TOO MANY CHARACTERS"
fi
echo -n "A2: "
read A2
echo -n "A3: "
read A3
echo -e "Concat: $B1/$B2/$B3"
Basically what it does is it... (4 Replies)
Discussion started by: jl487
4 Replies
10. UNIX for Advanced & Expert Users
Hi All,
I'm facing issue while opening xls file while contains Russian/Siberian character
I tried various options which I could get from google but still issue persists hence thought of taking help here,
We are trying to export data from Oracle via shell script using sqlplus utility. After... (8 Replies)
Discussion started by: arvindshukla81
8 Replies
LEARN ABOUT REDHAT
testprns
TESTPRNS(1) TESTPRNS(1)
NAME
testprns - check printer name for validity with smbd
SYNOPSIS
testprns printername [ printcapname ]
DESCRIPTION
This tool is part of the Samba suite.
testprns is a very simple test program to determine whether a given printer name is valid for use in a service to be provided by smbd(8)
"Valid" in this context means "can be found in the printcap specified". This program is very stupid - so stupid in fact that it would be
wisest to always specify the printcap file to use.
OPTIONS
printername
The printer name to validate.
Printer names are taken from the first field in each record in the printcap file, single printer names and sets of aliases separated
by vertical bars ("|") are recognized. Note that no validation or checking of the printcap syntax is done beyond that required to
extract the printer name. It may be that the print spooling system is more forgiving or less forgiving than testprns. However, if
testprns finds the printer then smbd should do so as well.
printcapname
This is the name of the printcap file within which to search for the given printer name.
If no printcap name is specified testprns will attempt to scan the printcap file name specified at compile time.
FILES
/etc/printcap
This is usually the default printcap file to scan. See printcap (5).
DIAGNOSTICS
If a printer is found to be valid, the message "Printer name <printername> is valid" will be displayed.
If a printer is found to be invalid, the message "Printer name <printername> is not valid" will be displayed.
All messages that would normally be logged during operation of the Samba daemons are logged by this program to the file test.log in the
current directory. The program runs at debuglevel 3, so quite extensive logging information is written. The log should be checked carefully
for errors and warnings.
Other messages are self-explanatory.
VERSION
This man page is correct for version 2.2 of the Samba suite.
SEE ALSO
printcap(5), smbd(8) smbclient(1)
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of
Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0
release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter
19 November 2002 TESTPRNS(1)