Ticket #63 (closed defect: invalid)

Opened 7 years ago

Last modified 6 years ago

avahi python module is not dealing with unicode strings

Reported by: sb Owned by: lennart
Milestone: Component: avahi-python
Keywords: Cc:

Description

byte_array_to_string in init.py simply replaces characters that are non-ascii with a dot. Upon trying to read the characters on my own, I noticed that unicode characters in txt have negative numbers, what are these?

Change History

Changed 7 years ago by sb

That's also seems to be the reason why avahi-discover does not display unicode characters correctly.

Changed 7 years ago by sb

Sorry, I noticed the numbers of the characters are not negative anymore with current avahi, I had used 0.6.10. However, in avahi-discover, a service with unicode data in txt is still displayed with dots instead of the right numbers.

Changed 6 years ago by lennart

  • status changed from new to closed
  • resolution set to invalid

DNS-SD TXT data is binary, and is not in any specific character set. Thus bytes > 127 are replaced by dots when shown.

Note: See TracTickets for help on using tickets.