Unicode in VOTable

Markus Demleitner msdemlei at ari.uni-heidelberg.de
Mon Jun 16 16:54:20 CEST 2025


Dear Apps folks,

On Thu, Jun 12, 2025 at 06:46:45PM +0000, Sipőcz, Brigitta via apps wrote:
> Gregory:
>> Contributing that “unsliced UTF-8 truncation to octets” function to
>>
> Astropy’s VO tools would be most useful.
>
> Yes please.

It turns out that that's not the nice little finger exercise to
reward oneself right before going home.  Surprisingly, it's actually
a bit of code and conceptially fairly complicated.

I've now cobbled together a function and a couple of tests that's
perhaps not ultra-robust and needs some review (attached, use
whatever license you need).  And... well, would anyone volunteer to
massage that into astropy?  I have a bit of stagefright when it comes
to their io.votable module, in particular when it's about introducing
a function we don't even need just now...

Thanks,

          Markus


-------------- next part --------------
A non-text attachment was scrubbed...
Name: utf8trunc.py
Type: text/x-python
Size: 1686 bytes
Desc: not available
URL: <http://mail.ivoa.net/pipermail/apps/attachments/20250616/3be01861/attachment.py>


More information about the apps mailing list