Skip to content

Print statement is not working with non ascii characters #3

@jampo

Description

@jampo

Reproduce: Have an non ascii char in Tomboy Note title e.g. Ü,Ä ...

Failing Log Output

Traceback (most recent call last):
  File "./trombone", line 27, in <module>
    main()
  File "./trombone", line 13, in main
    print >>sys.stderr, '>> Title: {0}\n'.format(incoming.title)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 15: ordinal not in range(128)

Caused by print statement of title:

print >>sys.stderr, '>> Title: {0}\n'.format(incoming.title)

Suggested:
Simple fix remove print of title

Advanced: support non ascii chars here / or at least escape them so no error is thrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions