Highlighted

Automate all site files encoding

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

Views

45

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn More

Automate all site files encoding

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

Views

46

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn More

Re: Automate all site files encoding

Adobe Community Professional , Oct 05, 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.

 

clipboard_image_0.png


Ben

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn More
Reply
Loading...

Thanks Ben for your quick reply.

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn More
Reply
Loading...

Not sure if you saw my last edited post. After writing th...

Not sure if you saw my last edited post. After writing the first line I pressed Shift-Enter and the answer was posted so I had to edit it after that.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn More
Reply
Loading...

Re: Automate all site files encoding

Adobe Community Professional , Oct 05, 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, ACP
Alt-Web.com

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn More
Reply
Loading...

Re: Automate all site files encoding

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)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn More
Reply
Loading...
Resources
Learn Resources
Add a group