ANSI/UTF-8/Regular text

General questions about using TextPad

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

Post Reply
User avatar
CWBillow
Posts: 110
Joined: Thu Nov 06, 2003 11:59 pm
Location: Chula Vista California
Contact:

ANSI/UTF-8/Regular text

Post by CWBillow »

I often get errors in TextPad about special characters. Is it UTF-8 I want so that the characters will work? I'm not inputting them but the errors show up when saving.

I don't need special characters (at least not now) so how do I "turn them off" or avoid them?
gurok
Posts: 33
Joined: Tue Apr 06, 2010 3:15 am

Re: ANSI/UTF-8/Regular text

Post by gurok »

It's a bit of a simplification, but yes, UTF-8 is your best choice.

In the Save As dialogue, you can choose the encoding at the bottom of the window as you save a file:
encoding.png
encoding.png (20.37 KiB) Viewed 1426 times


There is also a default for each file type in TextPad. Go to Configure->Preferences... then choose Document Classes. Under each file type, you'll see a section for Default encoding:
default-encoding.png
default-encoding.png (22.8 KiB) Viewed 1426 times

Changing this to UTF-8 for Text and Default should be enough to avoid those warnings. If you like, you can change it for C/C++ too, but there are reasons you might want to keep that ANSI.



It's not possible to "turn off" special characters. TextPad's policy is to try to convert them and warn you if it can't. UTF-8 is a great choice because it should allow every character. ANSI is the default because while it's limited, it's also more compatible. Maybe I should say, historically, it's been more compatible. UTF-8 is pretty ubiquitous now.
Post Reply