Skip to content

translation from NVivo encoded strings to clear text throws a error #15

@stlkcmrd

Description

@stlkcmrd

Thank you for the project!

I faced one error when I tried to normalise my .nvp file.
The project was created with nvivo version QSRNVivo20.6.
If I am not mistaken, the current way of decoding does not work for the new versions.

Currently, decoding throws a ValueError: chr() arg not in range(0x110000) as per following lines:

nvivotools/NVivo.py

Lines 432 to 434 in 55d0c5a

if args.windows:
project['Title'] = u''.join(map(lambda ch: chr(ord(ch) - 0x377), project['Title']))
project['Description'] = u''.join(map(lambda ch: chr(ord(ch) - 0x377), project['Description'])).replace('\r\n', '\n')

What might the updated shift be?

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