Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeEncodeError #15

Open
MattSeen opened this issue Aug 11, 2015 · 8 comments
Open

UnicodeEncodeError #15

MattSeen opened this issue Aug 11, 2015 · 8 comments
Labels

Comments

@MattSeen
Copy link

Hey,

Nice utility. Just wondering if you encountered this error while testing:

UnicodeEncodeError: 'charmap' codec can't encode character u'\u2013' in position 175: character maps to <undefined>.

I'm guessing it's just some standard ascii/unicode issue?

Kind Regards,

  • Matthew
@MattSeen
Copy link
Author

Here is the full stacktrace.

Traceback (most recent call last):
  File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "c:\Python27\Scripts\jiracli.exe\__main__.py", line 9, in <module>
  File "C:\Python27\lib\site-packages\jiracli\__init__.py", line 631, in main
    issue_search_result_print(jira_obj, args, args['issue_search'])
  File "C:\Python27\lib\site-packages\jiracli\__init__.py", line 264, in issue_search_result_print
    args['issue_oneline'])
  File "C:\Python27\lib\site-packages\jiracli\__init__.py", line 251, in issue_list_print
    for k, v in desc_fields.items()) + "\n")
  File "C:\Python27\lib\encodings\cp850.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2013' in position 175: character maps to <undefined>

@toabctl
Copy link
Owner

toabctl commented Aug 11, 2015

@MattSeen What version of jiracli are you using? I guess it's a problem with Windows and utf-8. Never had this problem on GNU/Linux. Do you have a chance to try the same command (on the same jira server) with jiracli from a GNU/Linux machine? Just to be sure it's related to Windows.

@MattSeen
Copy link
Author

These are the version I'm using:

jira (0.50)
jiracli (0.4.3)

I'll grab a distro in a while and give it a go.

@MattSeen
Copy link
Author

Hey @toabctl just tried out jiracli on a Linux on a VM. It's able to communicate with Jira and doesn't spit those errors all right. Any thoughts on how to mitigate this error on Windows?

@toabctl
Copy link
Owner

toabctl commented Aug 23, 2015

@MattSeen No. I don't have a windows machine here to test it. Sorry.

@MattSeen
Copy link
Author

No problem. I'll play around with it when I have some time soon, might put in a pull request.

@toabctl
Copy link
Owner

toabctl commented Aug 24, 2015

@MattSeen ok. Thanks!

@toabctl toabctl added the bug label Oct 1, 2015
@toabctl
Copy link
Owner

toabctl commented Jul 9, 2017

@MattSeen any update here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants