Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-01

File encoding changing silently

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gabor Boros

Hi,

I am fighting with an ansi/unicode/utf8 problem and during this war observed a strange thing for me about file encoding. When a new project created the encoding is CP1250 (from File Setting/Encoding ) for me. Then saved the project the encoding is CP1250 in File Setting/Encoding. But when reopen the project (with or without close Lazarus) Encoding displays UTF8. Is it normal? Lazarus convert encoding automatically or new files created with UTF8 but File Setting/Encoding display wrong value?

Gabor

Reply by email

Gabor Boros
to Mattias Gärtner

I discovered next things. Created new project and encoding is UTF8. It is good. But set encoding to CP1250 and go into File Settings/Encoding no check appears before any item. But this problem showed only once. Second problem. The files created with UTF8 now. Right. But if set Encoding to CP1250 (after pressed Change file) File Settings/Encoding displays good CP1250 value but if reopen the project the File Settings/Encoding displays UTF-8 again.

Gabor

Mattias G?rtner ?rta:

Zitat von Gabor Boros : I fixed one place in r18166. Please test.

Reply by email

Gabor Boros
to Mattias Gärtner

Mattias G?rtner ?rta:

Zitat von Gabor Boros : Are you sure? Is there a menu item with a bracket?

No. ;-) Before, I said CP1250 but now I say Ansi(cp1250). When click on Ansi(cp1250) and after go to Encoding again, Ansi(cp1250) and no other encoding selected.

BTW, why do you want to use CP1250 as encoding instead of UTF-8?

I don't want. Just playing with encoding setting after you fixed the problem.

Gabor

Reply by email