How to Change File Encoding from an FCXE Button

Discussion and questions - donor version.
Post Reply
Message
Author
User avatar
BGM
Posts: 594
Joined: 14.10.2008, 23:42
Location: Kansas City, Missouri, USA
Contact:

How to Change File Encoding from an FCXE Button

#1 Post by BGM » 04.02.2012, 06:24

Salvete! I was working on some scripts and found I needed to change the encoding of all the files to ANSI or all the files to Unicode. I couldn't find any options in FC to do this, so I used FC's awesome custom button system to build it using a commandline program.

There is a free commandline convertor here:
http://www.gbordier.com/gbtools/stringconverter.htm

Just pop the path of the convetor into your Favourites Toolbar. You need two buttons:
For the parameters, here they are:

Convert the file to Unicode
"%ActivSel%" "%ActivSel%" /unicode

Convert the file to ANSI
"%ActivSel%" "%ActivSel%" /ANSI

You don't need a Start folder, because the program has no accompanying files.

These settings will replace the file. If you want to convert the file, but make a copy, then add some text to the second ActiveSel token, like this: "%ActiveSel%_converted"

To make the black cmd box not flash open and closed (like windows likes to do), make sure you check the "minimized" box in the "Define favourite toolbars" panel (in the "Run" section.

God bless! :)
(Windows 10-1909 Professional 64bit)

joby_toss
Posts: 1345
Joined: 22.07.2009, 21:19
Location: Romania
Contact:

Re: How to Change File Encoding from an FCXE Button

#2 Post by joby_toss » 04.02.2012, 06:47

Thanks for the tip!

Post Reply

Who is online

Users browsing this forum: No registered users and 57 guests