How to transfert special fonts in ksh script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to transfert special fonts in ksh script
# 1  
Old 09-18-2003
How to transfert special fonts in ksh script

Hello,

I have a script in ksh who I make a move from a File who is transfered from a another System.

So when I read this file under Unix HP , I cannot read the character ö or Ö .

A litlle Example :
I must can read Östereich but I read s^tereich

Can Anyone help me if there is a Unix command who can convert this character in the right character.

Thank a lot...
# 2  
Old 09-18-2003
I don't understand the question at all, but it seems to involve extended character sets.

HP-UX and ksh both handle 8 bits characters fine. Here is a script to display the 8 bit characters...
Code:
#! /usr/bin/ksh

typeset -R1 dchar
typeset -i8 octal oincr ochar

octal=8#200

while ((octal < 8#220)) ; do
        oincr=0
        line=""
        while ((oincr <= 8#160)) ; do
                ((ochar=octal+oincr))
                dchar=$(echo \\0${ochar##??}\\c)
                line="${line}${ochar##??} $dchar    "
                ((oincr=oincr+8#20))
        done
        echo "$line"
        ((octal=octal+1))
done

exit 0

What happens when you run this script depends on the system that is actually drawing the characters on your desktop. There are several different standards for how 8 bit characters are displayed.

See this link to see some of them.
# 3  
Old 09-22-2003
Hello,

When I run your script it display me this...

200 220 240 _ 260 ° 300 À 320 Ð 340 à 360 ð
201 221 241 ¡ 261 ± 301 Á 321 Ñ 341 á 361 ñ
202 222 242 ¢ 262 ² 302 Â 322 Ò 342 â 362 ò
203 223 243 £ 263 ³ 303 Ã 323 Ó 343 ã 363 ó
204
224 244 ¤ 264 ´ 304 Ä 324 Ô 344 ä 364 ô
205
225 245 ¥ 265 µ 305 Å 325 Õ 345 å 365 õ
206 226 246 ¦ 266 ¶ 306 Æ 326 Ö 346 æ 366 ö
207 227 247 § 267 · 307 Ç 327 × 347 ç 367 ÷
210 230 250 ¨ 270 ¸ 310 È 330 Ø 350 è 370 ø
211 231 251 © 271 ¹ 311 É 331 Ù 351 é 371 ù
212 232 252 ª 272 º 312 Ê 332 Ú 352 ê 372 ú
213 233 273 » 313 Ë 333 Û 353 ë 373 û
214 235 254 ¬ 274 ¼ 314 Ì 334 Ü 354 ì 374 ü
215 216 236 256 ® 276 ¾ 316 Î 336 Þ 356 î 376 þ
217 237 257 ¯ 277 ¿ 317 Ï 337 ß 357 ï 377 ÿ


So when I want to display directly from the keyboard the character ö it display v. It's the same when I use ALT 148 from the keyboard.

So can anyone help me ..

So thanks a lot...
# 4  
Old 11-28-2003
Hi,
I am dealing with the same problem at the moment. When a name has an é or an ö or any letter like that, in unix it is displayed as \366. This is not ASCII code and i am trying to find out what it is and where i can find a standard for these characters.
Any ideas??

Tine
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

comparing special characters in KSH

Hi Guys, I came across a scenario where I have to check the starting character of line in a file. if it is a specile character i.e. "<" gretaer then perform action. I tried serval ways but could not get the work done. Please help me .... Thanks (6 Replies)
Discussion started by: ravi111_07
6 Replies

2. Shell Programming and Scripting

expect script with special characters?

Hello all, I'm writing an expect script that will connect to an IMAP server and issue IMAP commands. The problem is that some of the text I need to send includes "quotes" and also !@#$%^&* special characters. For example, my password is VFR$5tgb but I cannot "send" this because Expect doesn't... (2 Replies)
Discussion started by: lupin..the..3rd
2 Replies

3. Shell Programming and Scripting

KSH script to run other ksh scripts and output it to a file and/or email

Hi I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email. For example ------- Script ABC ------- a.ksh b.ksh c.ksh I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies

4. Linux

Script to Remove Fonts from Server

hi we need to be able to run a script to delete fonts from our production server. It needs to be able to scan a set of volumes and check the file type then if it detects a font remove it. Server is a IBM 3850 running Red Hat Enterprise 4 update 5 the san attached raid where the data is stored... (1 Reply)
Discussion started by: treds
1 Replies

5. UNIX for Dummies Questions & Answers

Change the fonts in the shell script

Hi All, I want to change the font and colour while writing them to a .rtf file using a shell script. How can i do this? Thanks & Regards Dilip (1 Reply)
Discussion started by: DilipPanda
1 Replies

6. Shell Programming and Scripting

import var and function from ksh script to another ksh script

Ih all, i have multiples ksh scripts for crontab's unix jobs they all have same variables declarations and some similar functions i would have a only single script file to declare my variables, like: var1= "aaa" var2= "bbb" var3= "ccc" ... function ab { ...} function bc { ... }... (2 Replies)
Discussion started by: wolfhurt
2 Replies

7. Shell Programming and Scripting

tracing a ksh script within a ksh script

I normally trace a script with the ksh -x <script name> and redirect strderr to file. But if you have a script like the examble below...... vi hairy bear=`grep bear animals` if then ksh more_animals fi If I ksh -x hairy it won't trace "more_animals" unless I put a -x in it. Is... (1 Reply)
Discussion started by: shorty
1 Replies

8. Shell Programming and Scripting

Check for special characters in a script

Hi All, In my shell script, i'm checking the date input against few constraints. It should be of YYYYMMDD format and the script should prompt the user with error message, if less than 8 digits are present or input contains special characters (*,&,%,^,$ ...etc). The script i'm using is given... (7 Replies)
Discussion started by: sumesh.abraham
7 Replies

9. Shell Programming and Scripting

executing a ksh script from another ksh script

Hi, I'm new to unix scripting.How can i call a script from another script. I have a.ksh and b.ksh .I have to call b.ksh from a.ksh after it is successfully exceuted. I tried using #!/bin/ksh -x in a.ksh and at the end i have used /path/b.ksh My problem is it is executing only a.ksh.it... (6 Replies)
Discussion started by: ammu
6 Replies

10. UNIX for Dummies Questions & Answers

Transfert ftp. server

How do I transfert data after connection to a ftp.server? Thanks for your help. (4 Replies)
Discussion started by: m.seidenberg
4 Replies
Login or Register to Ask a Question