Coder Social home page Coder Social logo

Comments (9)

leonjza avatar leonjza commented on May 27, 2024

Thanks.
As for the encoding weirdness, its partly due to the fairly aggressive escaping that it goes through in this function.

As for the industry progress bars etc, this is something that can easily be added again. I just don't have API keys that can give me detailed info to actually test with.

from seat.

Xaroth avatar Xaroth commented on May 27, 2024

I would have no issue with sharing some keys that are actively used if you need that to test.

I'll have a look at that function and see if I can suggest some changes to make this work better.

from seat.

Drynael avatar Drynael commented on May 27, 2024

I can provide you also some keys on corp or pilot base.

from seat.

leonjza avatar leonjza commented on May 27, 2024

Cool. I'll poke this thread again when I am ready.

from seat.

Xaroth avatar Xaroth commented on May 27, 2024

As for the unicode parts, some quick looking shows that DOMDocument will not treat the html content as unicode unless explicitely specified.

One option would be to wrap it in wrapper html and set a meta tag to specify the content to be unicode, or use mb_convert_encoding to convert all non-ascii stuff from UTF-8 with html entities.

On that note, I also see that color and size props are stripped out, while I understand that part (plus, ccp's font color spec is not rgb, it's argb). While I agree with the implications of having that, an argument could be made that font colour is not really a security issue, and could be a configurable option whether or not to strip out.

from seat.

leonjza avatar leonjza commented on May 27, 2024

Could something like this work to normalize those chars?

from seat.

Xaroth avatar Xaroth commented on May 27, 2024

Not really, the data itself is actually unicode data (2 bytes per character), but it is forced downwards to ascii (1 byte per character), so the data you see is not the data the API returns.

the parser that is being used needs to be made aware that the data it is extracting should be unicode data, or convert the unicode data to ascii with html entities using mb_convert_encoding... after that it -should- work just fine.

For reference, the API output: https://api.eveonline.com/corp/CorporationSheet.xml.aspx?corporationID=98387826

from seat.

leonjza avatar leonjza commented on May 27, 2024

Ah, excellent, thanks for the example.

from seat.

leonjza avatar leonjza commented on May 27, 2024

Unicode problems should be gone with eveseat/services 1.0.14.

Going to hold off with the corp page designs for now.

from seat.

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.