File with German Umlaut


 
Thread Tools Search this Thread
Operating Systems Solaris File with German Umlaut
# 1  
Old 03-26-2012
File with German Umlaut

Hi

I have a txt file i saved in windows with german umlauts

When listing the file in Solaris 10 I can't see the umlauts

I tried to export LANG to de, at and anything else in /usr/lib/locale but it didn't help

Can anybody help out please?

Thanks in advance
# 2  
Old 03-26-2012
It is probably a UTF-16 text file, which can't be understand by any usual tools. You'll need to convert it to a character set your system can understand. UTF-8 may do since it's compatible with ASCII for the most part.

Code:
iconv -f UTF-16 -t UTF-8 original-file > new-file

# 3  
Old 03-27-2012
Thanks Corona but this command turned my file into data type rather than ascii so i can not even process it anymore

any ideas?Smilie

---------- Post updated at 04:09 AM ---------- Previous update was at 04:06 AM ----------

Code:
xxxxxx:/tmp$ file FILENAME
FILENAME:    ascii text
xxxxx:/tmp$ file FILENAME.UTF-8
FILENAME.UTF-8:      data

# 4  
Old 03-27-2012
Your file was UTF-8 in the first place, then, and converting it mangled it.

Not being able to see certain UTF-8 characters sounds like a fonts problem.
# 5  
Old 03-27-2012
Perhaps this is just a ssh client issue.

When you setup Translation (to UTF8) in putty and connect to machine, can you see german chars when you cat the file ?
# 6  
Old 03-28-2012
Thanks guys. Yes i changed the Translation in Putty and i could see the chars properly. Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies

2. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

Hi Friends, I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving... File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies

3. Virtualization and Cloud Computing

NX Nomachine - German Keyboard does not work

Hello, I´m trying to get NX Nomachine working. On the server I use NX Free Edition for Solaris (running on Sparc Solaris 10 update 5). The Client is NX Client for Windows running on XP Professional. So far so good. Nearly everything works fine. The only problem is, that I always have the US... (1 Reply)
Discussion started by: bluemax
1 Replies

4. UNIX for Dummies Questions & Answers

german characters (e.g. ä, ß, Ö)

Hi Guys, I am working with a system whereby messages are being transferred into a UNIX box (which contain these german characters) and the message needs to be read by a script. But the box doesnt understand these german umlaut characters e.g. Ö , ä. What happens is that they get changed by the unix... (0 Replies)
Discussion started by: ocelot
0 Replies
Login or Register to Ask a Question