From: "Chris Antos (Exchange)"
Windows uses the ANSI character set. DOS programs (and almost all file
editors in existence, even ones for Windows) use the ASCII character
set. what's happening for you is that you copy some ANSI text to the
clipboard, then paste it into an ASCII application.
to answer your 3 questions:
- no conversion is happening, it's what i explained above.
- no.
- no. however, you can set your DOS box font to a truetype font and you
might be able to get ANSI characters, but then TSE will look weird.
the best solution might be to write a macro that DOES do a conversion
when pasting. many characters it would be possible to convert; however,
some ANSI characters don't exist in ASCII, and vice versa. it would be
possible to write a macro that pasted from the windows clipboard and
additionally converted from ANSI to ASCII.
e.g.,
proc ANSIPaste()
integer n = Set(UnMarkAfterPaste, FALSE)
// paste it
PasteFromWinClip()
// convert from ANSI to ASCII
// ... you must fill this in, i don't have time ...
// ... here's an example, though:
lReplace(Chr(241), Chr(164), "gln") // convert n~
lReplace(Chr(209), Chr(165), "gln") // convert N~
// now handle the UnMarkAfterPaste setting
Set(UnMarkAfterPaste, n)
if n
UnMarkBlock()
endif
end
you can use Character Map (charmap.exe) and TSE's ASCII chart to figure
out the rest of them.
//chris
> | -----Original Message-----
> | From: oexel@economatica.com.br [SMTP:oexel@economatica.com.br]
> | Sent: Friday, April 18, 1997 4:03 AM
> | To: TSE Mailing List
> | Subject: accented characters
> |
> | I'm posting this here although I guess this question has
> | more to do with Windows itself than with TSE;
> |
> | I'm from Brazil and we use a lot of accented characters
> | down here; I notice that when you cut a chunk of text from
> | a gui app (ex: Notepad) and paste it into TSE some special
> | kind of conversion takes place on accented characters;
> | if, on the other hand, you save the file in NotePad and open
> | it with TSE the characters are NOT converted;
> |
> | - does anyone know who is performing this conversion?
> | - is there a way to disable it?
> | - better yet: is there a way to make TSE use the same
> | character set windows uses?
> |
> | TIA!
> |
> | Otavio Exel /\
> | oexel@economatica.com.br
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)
|