Skip to main content
Marciano#1
Known Participant
October 5, 2019
Question

Automate all site files encoding

  • October 5, 2019
  • 3 replies
  • 440 views

I have several very old files that are not encoded as UTF-8
One by one I am able to change that from File Properties - Title/encoding
Is there a way to automate the task for all files?
This is not about text replace.
CC2019 Mac
Thank you

    This topic has been closed for replies.

    3 replies

    Marciano#1
    Known Participant
    October 5, 2019

    Hi Nancy,
    Several tests I performed some time ago didn't take into account meta charset nor php header but DW encoding.
    I built a modern local server to make other several changes in those scripts before make them public.
    I don't need to set meta charset or php header, I guess default charset is utf-8 despite it is not mentioned so I only need DW File encode set to utf-8 and mysqli_set_charset also to utf-8 then outputs are okay (Spanish languages with accented vowels and ñ).
    So it seems that one by one I have to change that (already done)

    Nancy OShea
    Community Expert
    Community Expert
    October 5, 2019

    Just as its name implies, Page Properties is performed on a page-by-page basis only.  No sitewide options available. To make sitewide code changes, use Find & Replace (Ctrl+Shift+F) on the entire site.   I suggest you take a very close look at your code before and after you changed title/encoding.  It sounds like you're changing more than the meta tag.   Because that's what needs changing from the F&R panel.  And it may require more than one go round.

     

    Nancy O'Shea— Product User & Community Expert
    BenPleysier
    Community Expert
    Community Expert
    October 5, 2019

    If you do not want to do a site wide find and replace (as you have stipulated), then you can do a copy and paste in code view.

     

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Marciano#1
    Known Participant
    October 5, 2019

    Thanks Ben for your quick reply.
    It is not about Find and Replace.
    Some weeks ago I tried meta charset but stil I had problems.
    The only way was to File-Page Properties Title/Encoding and change to UTF-8
    I want to automate the process for all files in a folder.
    Thank you