Non-ANSI characters warning

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
nicksimon
Posts: 1
Joined: Wed Oct 15, 2008 2:28 pm

Non-ANSI characters warning

Post by nicksimon »

Hello,

Every time I open a UTF-8 document with non-ANSI characters I get this warning:

WARNING: "file.txt" contains characters that do not exist in code page 1252 (ANSI - Latin I). They will be converted to the system default character, if you click OK

This makes reading and editing the file impossible. Can this be resolved?

Thanks!

PS: My version is 4.3.1
bveldkamp

Post by bveldkamp »

That's not possible, because TP does not support unicode.
AotD
Posts: 2
Joined: Wed Oct 22, 2008 8:31 am
Location: Novosibirsk, Russia

Post by AotD »

On windows XP this problem not appears, TP open all files, but on Vista TP show me the same warning:"WARNING: "file.txt" contains characters that do not exist in code page 1252 (ANSI - Latin I). They will be converted to the system default character, if you click OK"

My UTF file contains only english and curillic (windows-1251) characters.

(sorry for my english :oops: )
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

As Berend says, TextPad does not properly support Unicode: it displays each document using only one (8-bit) code page at a time. Your document contains characters that exist in Windows CP1252, and TextPad is trying to display it using Windows CP1251.

Select
Configure | Preferences | Document Classes | <Class> | Font | Script: Cyrillic
or
View | Document Properties | Font | Script: Cyrillic.

Here is the correspondence between scripts and code pages:

Code: Select all

Western            1252
Greek              1253
Turkish            1254
Central European   1250
Cyrillic           1251
AotD
Posts: 2
Joined: Wed Oct 22, 2008 8:31 am
Location: Novosibirsk, Russia

Post by AotD »

I open file from File -> Open, it opens normally.
But from shell (Open with -> TextPad) - warning appears. :?

TextPad (5.2)
Post Reply