You are here: PSPad forum > Bug report / Hlášení chyb > Convert ANSI file to UTF-8

Convert ANSI file to UTF-8

#1 Convert ANSI file to UTF-8

Posted by: mile77 | Date: 2021-04-10 14:17 | IP: IP Logged

Hi,
I open a PHP file in ANSI format and change the encoding to UTF-8 no BOM, then save it.
When I reopen it, it is still in the old format.
I also tried the batch conversion, but the result is the same.
mile77

Options: Reply | Quote | Up ^


#2 Re: Convert ANSI file to UTF-8

Posted by: vbr | Date: 2021-04-10 14:46 | IP: IP Logged

mile77:
Hi,
I open a PHP file in ANSI format and change the encoding to UTF-8 no BOM, then save it.
When I reopen it, it is still in the old format.
I also tried the batch conversion, but the result is the same.
mile77

Hi,
are there some specific characters other than ASCII - basic Latin, numbers etc.?
There normally a detection for encoding, which should recognise utf-8, but for those "lower" characters without accents etc. the file is the same even in different encodings.
Do you get get some corrupted text due to the bad encoding onreopening the file or is it just the displayed encoding in the satutsbar?
I believe, PSPad can keep the previously selected encoding for a given file, according to the settings:
Settings: Files and Dirs: [x ] Remember File state

hth,
vbr

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR