Comments (9)
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.
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.
I can provide you also some keys on corp or pilot base.
from seat.
Cool. I'll poke this thread again when I am ready.
from seat.
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.
Could something like this work to normalize those chars?
from seat.
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.
Ah, excellent, thanks for the example.
from seat.
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)
- Broken evewho link HOT 2
- the role of the old corporation is retained for a time after the change of corporation HOT 4
- SDE doesn't update after changing required tables
- Foreign characters showing in my character list
- Limit Alliances Based on Valid Tokens HOT 3
- Duplicate New Application Notifications HOT 6
- InvalidStateException when user try to authenticate HOT 3
- Character sheet 500 error
- Feature Request: Ability to use @Here, etc. Alerting in Discord Notifications HOT 5
- Squad deletion confirmation
- Squad members default sort
- Suggestion: Ability to filter into squad based on Seat\Web\Models\Acl\Role HOT 1
- notifications/src/Notifications/Sovereignties /Discord/
- Instalation on Ubuntu 22.10 (Kinetic Kudu) HOT 2
- Unable to update modules HOT 1
- Its good
- InvalidClaimException & InvalidStateException HOT 4
- SeAT v5 - SQL Syntax Error - Top Wallet Transactions (Characters -> Intel) HOT 1
- SQL missing primary key on table password_resets HOT 1
- Zkill icon on char sheets not linking to char numbers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seat.