Stream read/write - encoding? e.g. binary, UTF8, UTF16, etc.

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Post Reply
karlchansen
Posts: 5
Joined: Wed Jun 26, 2019 5:27 pm
Has thanked: 1 time
Been thanked: 1 time

Stream read/write - encoding? e.g. binary, UTF8, UTF16, etc.

Post by karlchansen »

Are files & streams always raw binary, or is there any byte encoding capability, i.e. designating a stream/file as UTF16 to always read a complete UTF16 character?
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Stream read/write - encoding? e.g. binary, UTF8, UTF16, etc.

Post by Giovanni »

Hi,

Streams are meant to be binary, there are no assumptions on the kind of data exchanged.

Giovanni
Post Reply