batch converting from ansi to utf-8 with the s&r files tool

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;

batch converting from ansi to utf-8 with the s&r files tool

Postby CodeChegga » Wed Jan 27, 2016 2:57 pm

Hello Experts,

is there in WeBuilder a batch converting from ansi to utf-8 with the "search & replace in files" and dirs function possible or do have any nice idea to to that with webuilder with bulk of html/php in my complet webdirectory.

So i am replacing with reg expression <META content="text/html; charset=[^>]+>
the meta key to
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
on that way it would be perfect to save the files automatically from ansi in utf-8 coding?

thanks for help & ideas

Rainer

actually i am testing
Character Set Converter 2.0
http://www.cscvt.de/
CodeChegga
 
Posts: 18
Joined: Fri May 21, 2010 10:25 am

Re: batch converting from ansi to utf-8 with the s&r files t

Postby Aivars » Thu Jan 28, 2016 3:04 pm

I don't think you can batch-convert easily with WeBuilder, even with plugins, but maybe you can write a PHP script for that (if you're familiar with PHP, of course). You could use Replace in Files to batch-replace the meta tag, but that would not convert the special characters in files from ANSI to UTF-8.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 2 guests