Page 1 of 1

code page 1252

Posted: Sun Jul 17, 2011 6:24 pm
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.

Posted: Mon Jul 18, 2011 1:01 pm
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.

Posted: Mon Jul 18, 2011 1:27 pm
by Marek ChefChick
quite simple. Thanks Ben!