Page 1 of 1
Non-ANSI characters warning
Posted: Wed Oct 15, 2008 2:36 pm
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
Posted: Tue Oct 21, 2008 9:46 am
by bveldkamp
That's not possible, because TP does not support unicode.
Posted: Wed Oct 22, 2008 8:38 am
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

)
Posted: Wed Oct 22, 2008 9:40 am
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
Posted: Wed Oct 22, 2008 2:49 pm
by AotD
I open file from File -> Open, it opens normally.
But from shell (Open with -> TextPad) - warning appears.
TextPad (5.2)