You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, December 16th 2003, 9:52pm

Default character encoding

Does anyone know how can I get Kate to _always_ open and save in ISO-8859-1? If I do 'Set encoding' when opening, and 'Save As' when saving, I can make it work, but it's tedious, and I keep corrupting our HTML files.

I open up an ISO-8859-1 encoded file (which Kate presumes is UTF-8), make a small edit to some PHP, and then save before noticing that the accents have all been mutilated. Bad!

In case it matters, I am using Redhat9.

Can anyone help?

2

Tuesday, December 16th 2003, 10:06pm

As far as I know, Kate defaults to the locale encoding, so yours seems to be UTF-8.

You could try launching Kate with
LANG=en_us.ISO-8859-1 kate
(Of course instead of en_us use your preferred language. If it does not work set KDE_LANG instead.)

(If you are working in HTML, you could use UTF-8, you just need to correctly define it.)

Have a nice day!