Coder Social home page Coder Social logo

Comments (2)

danmoseley avatar danmoseley commented on June 27, 2024

Previously the tool loaded in 1252
https://github.com/carlossanlop/DocsPortingTool/blob/bcbb8d36dc3c4e264b2d37b063cdb737ba0e1796/Libraries/Docs/DocsCommentsContainer.cs#L179-L182
so I changed the save code to save in 1252 based on that comment
https://github.com/carlossanlop/DocsPortingTool/blob/bcbb8d36dc3c4e264b2d37b063cdb737ba0e1796/Libraries/Docs/DocsCommentsContainer.cs#L50-L51

I'm now unsure what is correct. @gewarren is asking. (UTF-8 everywhere would be wonderful)

from api-docs-sync.

carlossanlop avatar carlossanlop commented on June 27, 2024

Thanks for that. I chose that encoding because 99% of the xml files had that particular encoding.

Ideally (and I tried to do this in many ways) we would extract the original encoding of the file, and use that when loading the file, then when saving the file. Unfortunately, it wasn't as straighforward as I hoped: whenever a non-ascii character showed up, the XML APIs would either throw an unexpected exception, or the characters would get unexpectedly replaced with the square character □.

from api-docs-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.