how to change cs file encoding?

Hi,
I copy some cs files from windows to mac, In windows, these files used Unicode encoding. however, when I open some files contain some chinese-characters in xamrain, i found all chinese-characters were unregonized. maybe in xamarin studio, the encoding is difference from visual studio.
Can I use the same encoding in xamarin studio? thanks!

Posts

  • MikeKrgerMikeKrger DEXamarin Team, Beta Xamurai

    Hi

    In the open file dialog you can choose the encoding.
    Can you give me one of the files where the encoding detection fails ? I'll see if I can improve it.

    Regards
    Mike

  • SnowwaftSnowwaft CNMember

    Here is my file, i cannot upload cs file so i changed the extendsion to txt.

  • MikeKrgerMikeKrger DEXamarin Team, Beta Xamurai

    The file seems to be in GB 18030 encoding (http://en.wikipedia.org/wiki/GB_18030)
    I implemented an encoding detection for such files.

    Thanks

  • LuisAMoralesLuisAMorales USMember, University

    I have the same problem but with accented characters and the ñ. In Visual Studio I have no problem but when I open the project using Xamarin Studio i just get some symbols. How can I set the encoding in Xamarin to be the same as Visual Studio? The problem is that whn I deploy from Xamarin the characters are wrong in a spinner but if I deploy from VS then the characters are correctly displayed in the spinner.

Sign In or Register to comment.