locked
Pex Generated Solution Encoded UCS-2 Little Endian, Why, how to change the default?

    Question

  • HI there

    i noticed that when I generate a pex test solution the default encoding of the files is UCS-2 Little Endian, this is not really cool, because all the rest of the files are normally encoded with Windows ANSI (I m getting this info from Notepadd ++) and its confirmed by my CI breaking

    Anyone knows 1) why is it using this encoding? 2) how to change it so by default it uses Windows ANSI like the rest of the files

    NOTE: I know this is the issue because i saved the file with Windows Ansi Encoding and it all works

    NOTE 2: I posted this question in StackOverflow, but then I know there si more traffic for Pex here, Sorry if  Im duplicating

    Thursday, July 08, 2010 5:25 PM

Answers

  • 1) why is it using this encoding?

    There is no particular reason for this, besides that we decide to use this particular encoding. We will switch on Windows-1252 (ANSI) encoding in the future for source files. XML files will still be encoded as UTF-8.

    2) how to change it so by default it uses Windows ANSI like the rest of the files

    Unfortunately, this is hard-coded in Pex and you cannot change this. The next release of Pex (0.93) will use ANSI.

     


    Jonathan "Peli" de Halleux - Try Pex online at www.pexforfun.com!
    Thursday, July 08, 2010 8:22 PM

All replies

  • 1) why is it using this encoding?

    There is no particular reason for this, besides that we decide to use this particular encoding. We will switch on Windows-1252 (ANSI) encoding in the future for source files. XML files will still be encoded as UTF-8.

    2) how to change it so by default it uses Windows ANSI like the rest of the files

    Unfortunately, this is hard-coded in Pex and you cannot change this. The next release of Pex (0.93) will use ANSI.

     


    Jonathan "Peli" de Halleux - Try Pex online at www.pexforfun.com!
    Thursday, July 08, 2010 8:22 PM
  • (note: we do not track stackoverflow regurlarly for Pex questions)
    Jonathan "Peli" de Halleux - Try Pex online at www.pexforfun.com!
    Thursday, July 08, 2010 8:23 PM