Convert utf8 to binary

The Hamming distance is the number of differing characters, no? Anyway, you could sum the bits in the xor between the elements of the UInt8 vector you created. I think there is a popcnt in Julia.

Edit: it is called count_ones

3 Likes