When replacing in files typ is set to ASCII instead UTF-8

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
MarkusN
Posts: 16
Joined: Tue Jul 26, 2011 3:29 pm

When replacing in files typ is set to ASCII instead UTF-8

Post by MarkusN »

All my files are UTF-8 without BOM because I am using texts with German umlauts and I do not want to use entities.

When using "Replace in files" the file type is reset to ASCII. Is that a bug or can it be configured?

I already set the option to set all ASCII files that are opened to UTF-8 without BOM so each time I edit such a file it is saved as UTF-8 automatically, but that does not solve the general problem.

Thanks for any help.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: When replacing in files typ is set to ASCII instead UTF-

Post by Aivars »

Is it the newest WeBuilder version?

It might be related to file contents. I just tested it and it didn't seem to change the encoding. Can you please check again and if you get the same results, send me the file, the text that you were replacing and the replacement text (here in forums or via http://www.blumentals.net/support/wizard.php).
Blumentals Software Programmer
MarkusN
Posts: 16
Joined: Tue Jul 26, 2011 3:29 pm

Re: When replacing in files typ is set to ASCII instead UTF-

Post by MarkusN »

So you are looking for a metadata with "charset=UTF-8" within those files? Mine do not have a regular html header because that is done with php include 'header.php'.
MarkusN
Posts: 16
Joined: Tue Jul 26, 2011 3:29 pm

Re: When replacing in files typ is set to ASCII instead UTF-

Post by MarkusN »

Version is 11.2.2.131 (German H&P build)
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: When replacing in files typ is set to ASCII instead UTF-

Post by Aivars »

It's checking the header and the file contents. I did my tests on a simple text file without any headers. I'm using the same build as you, except the regular (non-German) version, but that should not affect this functionality. If you prefer, I can send you my test file to see if it behaves differently on your PC.
Blumentals Software Programmer
MarkusN
Posts: 16
Joined: Tue Jul 26, 2011 3:29 pm

Re: When replacing in files typ is set to ASCII instead UTF-

Post by MarkusN »

Strange then. Just sent you one of those files.
MarkusN
Posts: 16
Joined: Tue Jul 26, 2011 3:29 pm

Re: When replacing in files typ is set to ASCII instead UTF-

Post by MarkusN »

I have set both options (UTF-8 without BOM) but again I got ASCII files after a replacement in all files. Tested it on two machines.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: When replacing in files typ is set to ASCII instead UTF-

Post by Aivars »

I managed to reproduce this, you are right, there is a bug and I'm filling in a bug report.
Blumentals Software Programmer
MarkusN
Posts: 16
Joined: Tue Jul 26, 2011 3:29 pm

Re: When replacing in files typ is set to ASCII instead UTF-

Post by MarkusN »

:)

Hope you have an update soon.
Post Reply