A menu option/status bar button to convert between encodings a la Notepad++
At least, between ISO-8859-1 and UTF-8, but every supported encoding by Windows is preferred
Interesting, let’s see how many others would use this feature!
What works perfectly is being able to convert file line endings/breaks to Unix/Windows which can be done in other programs. I need this feature as Unix line endings are required for my work server.
I am having to use 'Convert Line Delimiters To' in Eclipse to change windows line endings to Unix. Could this be implemented, or is there another work around?
Exactly, I'm note sure though this will remove your extra new lines (but it might). Also note that on most Linux servers at default configuration PHP does not like to be written in UTF-8 so if you plan on publishing to a shared hosting provider this could cause issue.
Would I set this to True? <EmitUtf8BomByDefault>False</EmitUtf8BomByDefault>
<Description>A PHP File</Description>
@Yishai Galatzer Thanks for the response. My may reason was to avoid unnecessary windows characters like new lines as this works best with my Unix/Linux server.
I will use the example provided below, Thanks!
@Ashton can you give us some more context. Most of the files are set to UTF-8, the ones that are not will auto detect that you have added non standard chars and will flip you to UTF-8 (or another codepage of your choice).
This was made mostly to support non-IIS servers that don't deal so nicely with UTF-8 particularly for example on PHP files.
Assuming the above explanation doesn't work out for your case you can always edit the following file:
C:\Program Files (x86)\Microsoft WebMatrix\config\filetypes.xml
For each file extension you can choose to go UTF-8 by default or not:
See example below:
<Description>A Plain Text File</Description>
Lastly we can of course consider this feature for our next release.
Thanks for using WebMatrix!
I would like to be able to set the default to utf-8 thanks!
I hope it will be more standards than ISO-8859-1? ;)
This feature is implemented through the Save-As feature.
On the bottom of the dialog you will see an encoding dropdown where you can pick your encoding.
It's necessary! :)