code page 1252

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
Marek ChefChick
Posts: 2
Joined: Sun Jul 17, 2011 6:12 pm

code page 1252

Post by Marek ChefChick »

Hello -

I can't correctly open the HTML file generated by another program with UTF-8 encoding. TexPad writes that the file contains chars which don't exist in code page 1252.

To work with such a file I open it with Windows Notepad but it is rather inconvenient!!!

What can I do to use TextPad in this case?

Thx.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Internally, TextPad stores all the text of each document in a single 8-bit character set (a "code page" or "script"). It supports a number of code pages, but only one at a time: it displays all the text of each document using a single code page.

The range of code pages available depends on the font you are using. You can select the code page at
Configure | Preferences | Document Classes | <Class> | Font | Script
or
View | Document Properties | Font | Script.

Here is a correspondence between some script names and code pages:

Code: Select all

Western            1252
Greek              1253
Turkish            1254
Central European   1250
Cyrillic           1251
If the characters in your document are not all in a single available code page, TextPad will not be able to display or save it correctly.
Marek ChefChick
Posts: 2
Joined: Sun Jul 17, 2011 6:12 pm

Post by Marek ChefChick »

quite simple. Thanks Ben!
Post Reply