Giter VIP home page Giter VIP logo

Comments (2)

gtback avatar gtback commented on August 29, 2024

I was able to parse both of those documents as email bodies after making the following change to the email_to_cybox script: CybOXProject/Tools@dfdee82

The key with the APIs for now is to pass in either Python unicode objects (u"" literals, for instance) or strings that can be converted to unicode directly with unicode() (for all practical purposes, this means ASCII strings; you can change the default system encoding, but that's at your own risk 😉).

I think we should consider converting most values (particularly String and subclasses) with unicode as soon they are set, so you don't have to wait until you export the value to get an error. I'm going to leave this issue open while we think about the best way to do that (and in particular whether there's a sane way to do it more "universally" and not just on String objects).

Thanks for pointing this out, @2xyo. I've known our unicode support is poor, so if you find other instances please report them. Those two documents are very useful; I'm surprised I haven't run across them before.

from python-cybox.

gtback avatar gtback commented on August 29, 2024

This issue has been fixed. I was leaving this open to catch other Unicode-related errors, but those should really just be opened as new issues.

from python-cybox.

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.