Bug 19614

Summary: Visual studio sets encoding to "Western European (Windows) - Codepage 1252" to all my files with iOS projects
Product: Visual Studio Extensions Reporter: Alexandre Pepin <alexandre.pepin>
Component: iOSAssignee: Bugzilla <bugzilla>
Severity: normal CC: dominique, egoulet06, ema, josemiguel, kzu, narayanp, vinicius.jarina
Priority: Normal    
Version: 1.12.x   
Target Milestone: 4.4.0 (C10)   
Hardware: PC   
OS: Windows   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: Sample project

Description Alexandre Pepin 2014-05-08 11:38:25 UTC
Created attachment 6756 [details]
Sample project

In the attached sample, I have two solutions : one windows console application and one iPhone application.

Steps to reproduce the problem : 
Open the console application and create a new file. If you go to File -> Advanced Save options, the encoding is set to "Unicode (UTF-8 with signature) - Codepage 65001". Every time I create a new file, the encoding is always utf-8. This is the expected result

But if you open the iPad application, create a new file and go to File -> Advanced Save options, the encoding is set to "Western European (Windows) - Codepage 1252". Every time I create a new file, the encoding is wrong. I expect it to be to utf-8 like in the console application

Screencast showing the steps above : http://www.screencast-o-matic.com/watch/c2hjoanywX

Problems :
1. This cause problems with our source control which only supports UTF-8. Some french characters encoding (ex : éèç) do not have the same encoding between utf-8 and codepage 1252.
2. I don't want to change the encoding every time I create a new file.
3. If you deploy with Xamarin Studio on a mac the iPd application, some french characters are shown as question marks even if they are shown correctly in the file editor of Xamarin Studio  (see screenshotVisualStudio.png and screenshotXamarinStudio.png)
Comment 1 narayanp 2014-05-09 02:14:37 UTC
On adding new file in iOS applications then at Advanced Save options, encoding is shown as "Western European (Windows) -Codepage 1252".
Screencast: http://screencast.com/t/ro96vEN0OF

Environment Info:
All VS
Xamarin for Visual Studio (0908d31fd2849ea1d7ec9cba9691ab83e48546a5)
Xamarin.Android (7f0e3d3cfb9b36570e8d7862a33d0310238c814d)
Xamarin.iOS (0908d31fd2849ea1d7ec9cba9691ab83e48546a5)
Comment 2 xamarin-release-manager 2016-12-23 21:03:13 UTC
Fixed in version (master)

Author: Emanuel
Commit: c43b1fff8013b4bdbf0fba1444a369ec68588000 (xamarin/XamarinVS)