W3cubDocs

/Haxe Python

Codecs

package python.lib

@:pythonImport("codecs") Available on python

Static methods

@:value({ errors : "strict", encoding : "utf-8" }) static decode (obj:Bytes, encoding:String = "utf-8", errors:String = "strict"):String

@:value({ errors : "strict", encoding : "utf-8" }) static encode (obj:String, encoding:String = "utf-8", errors:String = "strict"):Bytes

static open (filename:String, mode:String, ?encoding:String, ?errors:String, ?buffering:Bool):StreamReaderWriter

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/python/lib/Codecs.html