8.1.0 Has anyone got Open File's Encoding option to work?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

8.1.0 Has anyone got Open File's Encoding option to work?

Post by chrisjj »

I haven't.

I do Open File and select Encoding UTF-8

Image

but the file appears in ANSI 1252:

Image

That's with the Preferences default at ANSI http://i.imgur.com/rDMEw73.png .

I try changing the Preferences default to UTF-8 http://i.imgur.com/JhEPN6A.png , and do File Open with the encoding remaining at Default:

Image

Still, the file appears as ANSI 1252.

Image

So, it seems to me that Open File is ignoring both an explicit encoding setting in the dialog box itself, and the default encoding setting in Preferences.

Please would someone else try this for me?

(Tested on Windows 7 Pro 64-bit.)
User avatar
christiandittmann41
Posts: 5
Joined: Fri Jul 15, 2016 10:10 pm
Location: Düsseldorf/Germany, La Nucia, Spain

8.1.0 Has anyone got Open File's Encoding option to work?

Post by christiandittmann41 »

Dear friend,

you are going the wrong way. All the signs in your example file are 8-bit-ascii.

Let me explain with my poor english:

In the sixties and seventies years last century the big mainframe computers worked with 6 bit for one byte. This was less, but memory was extremely expensive. So, for example, they could not display (i.e print!) little characters.

The next step was to go to 8 bit per byte, seven for data, one for plus/minus. So it was possible to print, later to display 128 characters. (0-127) 127 was the sign for <del>, all holes on a ticker tape were punched. So the operators were able to correct a mistake by punching the <del> sign over it on a tape.

Step three was to expand to 8 bit ascii, ansi was born. Now were 256 characters available and the +128 characters was used for multiple purpose. Men in western or northern (Sweden and so on) countries, in russia, asia and africa made different use of these 128 characters.

The internet called for more and more signs, utf-8/utf-16 was born.

utf = Unicode Transformation Format

This format uses characters with variable length. Beginning with ascii an ansi utf-8 uses only one character per sign. But at least 4 (four!!!) bytes per character is in use.

Therefore Textpad made the big AND great step (making me really happy) to go to utf-8. And I can say with my little experience of 40 years of programming: The sniffing of a file to find out the charset is definitely NOT trivial.

So what, please take a little time to learn more. Very good idea.

Please visit these sites:

http://www.ascii-code.com/
http://www.utf8-zeichentabelle.de/unico ... inhtml=hex
http://symbolcodes.tlt.psu.edu/web/unicode.html

Is that ok? Don't forget to ask me something else if you want. I'm behind you!

Christian
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Re: 8.1.0 Has anyone got Open File's Encoding option to work

Post by chrisjj »

christiandittmann41 wrote:Dear friend,

you are going the wrong way. All the signs in your example file are 8-bit-ascii.
I guess you mean 8-bit ANSI. Because there's no such thing as 8-bit ASCII. ASCII is 7-bit https://en.wikipedia.org/wiki/ASCII
christiandittmann41 wrote:Therefore Textpad made the big AND great step (making me really happy) to go to utf-8.
And it retained compatibility with ANSI (e.g. Windows-1252). See the Preferences I posted:

Image

My problem is only that this is not working.
Post Reply