Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2002 10:49:29 +0200
From:      Jimmy Lantz <jimmy.lantz@lusidor.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Ascii or Special Char problem on FreeBSD 4.6
Message-ID:  <5.1.0.14.0.20020819103449.02a97f40@mail.lusidor.nu>

index | next in thread | raw e-mail

Hi,
A question about filesystem and specialchars:

I have problems with certain files, which contains special chars, converted 
in my shell to questionmarks, appear to be ascii chars.

For instance: a file called  "unŒtitled ", appears in the shell as 
un?titled? but when I use "less" i get  un^Ětitled^\

-rw-r-----  1 ftp  nobody      42 19 Aug 02:20 un?titled?
frodo# less un^Ětitled^\

Looking in the Ascii table gives
140 Œ 8C &#338; %8C %8C
204 Ě CC &#204; %CC %CC
        ----                                      ----
How does FreeBSD get from Œ to ^Ě  ?

I'm creating a script so I need to know what conversion table is used by 
FreeBSD, so that I can access the file from my script
without having to execute a command  "less" or worse if the specialchar was 
placed initially, I dont have a clue what the file is called.

I have my locale set to
MM_CHARSET=ISO-8859-1
LANG=sv_SE.ISO_8859-1

I'm greatful for any input on this subject.

Jim


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20020819103449.02a97f40>