One outstanding issue is what behaviour do we expect from Bytes() and SetBytes()?
Currently, these return/take the UTF8 encoded bytes, regardless of the specified encoding, but it seems like it could be more appropriate to return/take bytes in the specified encoding.
I tried doing this, but this led to issues with other functions in the library which expected the current behaviour, and users of this library may expect the same.
Fixes #297
One outstanding issue is what behaviour do we expect from
Bytes()
andSetBytes()
? Currently, these return/take the UTF8 encoded bytes, regardless of the specified encoding, but it seems like it could be more appropriate to return/take bytes in the specified encoding. I tried doing this, but this led to issues with other functions in the library which expected the current behaviour, and users of this library may expect the same.