Skip to content

encoding errors with file objects #108

@rogerbinns

Description

@rogerbinns

From rogerbinns on August 15, 2010 18:36:37

Some file objects have an encoding and errors attribute.

They all have a write method.

The write method accepts unicode strings (and in python 2 bytes strings)

Depending on the implementation, calling the write method with a unicode string will result in either:

  • The unicode being appropriately converted/used according to how that file object wants to deal with encodings. Note this could legitimately result in a unicode error.
  • The file object completely ignoring its own encoding and using ascii instead potentially giving a unicode error.

Original issue: http://code.google.com/p/apsw/issues/detail?id=108

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions