Handling of single quote in FITS header
Posted: Tue Aug 26, 2025 3:45 pm
If the object name is something that contains a single quote (for example Stephan's Quintet ) then SharpCap currently stores it in FITS header as is:
This causes the single quote in the middle to end the value and the rest is treated as comment.
I googled a bit and several documents (for example https://fits.gsfc.nasa.gov/users_guide/ ... ode20.html ) mention that "To include a single quote within a character string, use two successive single quotes"
I tested with several applications and at least those that I mostly use will then properly display it. (Though I also saw some that still cut it to "Stephan" and some will show "Stephans Quintet" - but I think still an improvement overall)
Is this something that could be fixed? I guess manual workaround is to just replace the single quotes coming from object databases manually with an apostrophe.
Code: Select all
OBJECT = 'Stephan's Quintet' /I googled a bit and several documents (for example https://fits.gsfc.nasa.gov/users_guide/ ... ode20.html ) mention that "To include a single quote within a character string, use two successive single quotes"
Code: Select all
OBJECT = 'Stephan''s Quintet' /Is this something that could be fixed? I guess manual workaround is to just replace the single quotes coming from object databases manually with an apostrophe.