Skip to content

scripting: investigate behaviour of title setting with degree symbol #8936

@FreddieAkeroyd

Description

@FreddieAkeroyd

Issue Description

On POLARIS a title was set containing a degree symbol

g.change_title("Pos3: M 400°C-treated calcium iridium niobium oxide pyrochlore in 6 mm V foil can, RT")

But the .xml file shows this as "<title NAPItype="NX_CHAR[16]">Pos3: M 400÷</title>" or

Image

The title also looks odd in the NeXus file too. This needs tracing through the logic to see where UTF-8 is not being preserved (Polaris journal_25_5.xml file, polaris00162323.nxs)

Acceptance Criteria

A title can be set using any valid UTF8 character

note

There have been issues in the past with non-ascii characters, I though it had been working but would need to look further. Past issues have revolved around different windows code pages e.g. labview used https://en.wikipedia.org/wiki/Windows-1252 i think not utf-8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions