File encoding changed to UTF-8 #22

Closed
jimbobdog opened this Issue Oct 19, 2011 · 9 comments

5 participants

@jimbobdog

I have some batchfiles in ANSI encoding, once Templified thought they are converted to UTF-8 encoding and this stops them working from a command prompt (the byte order mark freaks things out)

Cheers,

James (Simmonds, ex CGO)

@HowardvanRooijen
endjin member

Hello James,

really sorry - not getting notifications from GitHub on this project.

I'll take a look - I've hit this problem in the last month with another tool and have a fix that I can add to templify. Hope all is good with you.

/h

@seif

@HowardvanRooijen any updates on this?

I can't see how to do this, other than storing the encoding with the manifest after detecting it following an approach like http://stackoverflow.com/questions/3404199/how-to-find-out-the-encoding-of-a-file-c-sharp#3404237 and when deploying a package read the encoding from the manifest and save the file with that encoding.

Or was your fix simpler?

@HowardvanRooijen
endjin member
@seif

Hmm, doesn't look like it, I still get the problem with 0.6.15130.1, maybe you are confusing it with #15 ?

@HowardvanRooijen
endjin member
@joshspivey

Any word on a fix for this?

@relston

Any update on this? Templify is great but this is causing our script files to freak out. Adding a lot of manual labor to fix.

@HowardvanRooijen
endjin member

I've just pushed up a new version of Templify (0.7.0.25) - which has both a performance fix and a file encoding fix.

Please download and test from here: https://dl.dropboxusercontent.com/u/5892928/Templify/Templify-Installer.exe

@joshspivey

There is still a issue with this yes it is UTF-8 but you need make sure you are saving it with out BOM headers! its making all my JavaScript and shells scripts error out when I try to run it because its saving it with BOM. JavaScript wont lint and shell scripts wont run...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment